Skip to content
drewyoung1 edited this page May 25, 2012 · 7 revisions

Clustering

A small cluster module with a plugin system

Install

npm install clustering

Usage

var clustering = require('clustering');

clustering(yourServer)
	.listen(3000);

And that will create a cluster running yourServer.

You can also use a plugin EG. use(clustering.watch()) (watches the main file)

Or set a property EG. set('workers', 128) (gives you a rediculous amount of workers)

API Plugins

Clone this wiki locally