Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
node.js's cluster module bootstrapped with common use case
JavaScript
branch: master

cleanup #4

latest commit 8bdea11e4d
Johnny Domino authored
Failed to load latest commit information.
.gitignore Initial commit
README.md Update README.md
main.js cleanup #4
package.json Update 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,
})
Something went wrong with that request. Please try again.