Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A silly, rediculously lite implementation of clustering for node web apps (or others).

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

Clusterlite

A silly, rediculously lite implementation of clustering for node web apps (or others).

Why?

I happily thought to use leanboost/cluster, then I found out it doesn't work with the new Node 0.6.x cluster API.

Usage

# clusterlite func. number of workers = number of cpus
clusterlite ()->
  < your app code >

# you might want to force a number of workers
clusterlite.workers = 4
clusterlite ()->
  ...

Contributing

Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).

Copyright

Copyright (c) 2011 Dotan Nahum @jondot. See MIT-LICENSE for further details.

Something went wrong with that request. Please try again.