Lite cluster based on 0.6.x Cluster API


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

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

# 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 ()->

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

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