Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

alecmekarzel/spronk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

███████████████████████████████████████████████████████████
 █████  ██████   ██████ ██   ██ ██ ██    ██ ███████ ██████  
██   ██ ██   ██ ██      ██   ██ ██ ██    ██ ██      ██   ██ 
███████ ██████  ██      ███████ ██ ██    ██ █████   ██   ██ 
██   ██ ██   ██ ██      ██   ██ ██  ██  ██  ██      ██   ██ 
██   ██ ██   ██  ██████ ██   ██ ██   ████   ███████ ██████  

This project was built over seven years ago as a quick-use utility and fun project not meant for production purposes. It has since been archived.

However, feel free to peruse, fork, modify, and so forth!

███████████████████████████████████████████████████████████

spronk

Easily cluster your apps via the CLI or with code.

Installation

# NPM
$ npm install spronk
$ npm install spronk -g

# Yarn
$ yarn add spronk
$ yarn global add spronk

Getting Started

With CLI

# View Help
$ spronk --help

# Basic Usage
$ spronk <file> [options]

# Basic Example
$ spronk example.js --workers 4

With Code

const spronk = require('spronk')

spronk({
	workers: 4, // number of workers to start [#CPUS]
	grace: 1000, // ms grace period after worker SIGTERM [5000]
	lifetime: 10000, // ms to keep cluster alive if workers exit [Infinity]
	start: function() {} // worker functions, this would typically contain your server code
})

Testing

Simply run npm test or yarn test (depending on your package manager) and all of the tests in the test/ directory will be run.

Issues

We don't accept issues; we accept pull requests.

Changelog

For milestones, visit the project's releases.

License

For license information, visit the project's license.

About

Easily cluster your apps via the CLI or with code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published