Install via npm
$ npm install --save city-17
var City17 = require( 'city-17' )
var cluster = new City17({
exec: require.resolve( './worker.js' ),
args: [ '--brutal' ],
clusterSize: 4, // defaults to `os.cpus().length`
killTimeout: 5000,
})
cluster.size // -> worker count
cluster.workers // -> array of workers
// n, callback are optional
cluster.resize( n, callback )
cluster.stop( callback )
cluster.forceQuit()