Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cluster = require('cluster')
- , live = require('cluster-live');
- cluster(app)
- .set('workers', 4) // initial number of workers
- .use(cluster.pidfiles()).use(cluster.cli())
- .use(cluster.debug())
- .use(cluster.repl(9999)) // telnet access to the cluster admin
- .use(cluster.stats({ connections: true, lightRequests: true }))
- .use(live({ user: 'foo', pass: 'bar' }))
- .listen(8081);
- // curl --user foo:bar --anyauth localhost:8888
Add Comment
Please, Sign In to add comment