███████████████████████████████████████████████████████████
█████ ██████ ██████ ██ ██ ██ ██ ██ ███████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██████ ██ ███████ ██ ██ ██ █████ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██████ ██ ██ ██ ████ ███████ ██████
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!
███████████████████████████████████████████████████████████
Easily cluster your apps via the CLI or with code.
# NPM
$ npm install spronk
$ npm install spronk -g
# Yarn
$ yarn add spronk
$ yarn global add spronk
# View Help
$ spronk --help
# Basic Usage
$ spronk <file> [options]
# Basic Example
$ spronk example.js --workers 4
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
})
Simply run npm test
or yarn test
(depending on your package manager) and all of the tests in the test/
directory will be run.
We don't accept issues; we accept pull requests.
For milestones, visit the project's releases.
For license information, visit the project's license.