cluster-cerebellum
is a cluster control module. It complements the native cluster
module and adds features like consecutive restarts of worker processes.
❗ This is still in alpha and API may change.
npm install --save cluster-cerebellum
const cerebellum = require('cluster-cerebellum')
const options = {
exec: 'worker.js',
numberOfWorkers: 3
}
cerebellum.setupCluster(options)
cerebellum.startCluster()