0.1.0 • Published 7 years ago

cluster-cerebellum v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

cluster-cerebellum

cluster-cerebellum is a cluster control module. It complements the native cluster module and adds features like consecutive restarts of worker processes.

:exclamation: This is still in alpha and API may change.

  1. Installation
  2. Usage
  3. API

Installation

npm install --save cluster-cerebellum

Usage

const cerebellum = require('cluster-cerebellum')

const options = {
	exec: 'worker.js',
	numberOfWorkers: 3
}

cerebellum.setupCluster(options)

cerebellum.startCluster()