node.js's cluster module bootstrapped with common use case
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
main.js
package.json

README.md

node-clustrap

node.js's cluster module bootstrapped with common use case. please use branch v1 and not master

example 1

var clustrap = require('clustrap')

clustrap(app, {
  workers:2,
  logger:winston,
  port:3000,
  sock:'/tmp/app.sock'
})

example 2

var clustrap = require('clustrap')
app.set('port',3000)
clustrap(app)

example 3

You can disable cluster by specifying 0 workers

var clustrap = require('clustrap')

clustrap(app, {
  workers:false || 0,
})