Skip to content

jhermsmeier/city-17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A bit of management around node's cluster module

Resources

License

Stars

Watchers

Forks

Packages

No packages published