0.4.0 • Published 5 years ago

city-17 v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

City-17

npm npm npm downloads build status

Install via npm

$ npm install --save city-17

Usage

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()
0.4.0

5 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago