bigcluster
Node.js Smart cluster framwork NodeJS
Installation
$ npm install bigcluster
Usage
var bigcluster = ;;
Parameters
Name | Type | Description | Requirement |
---|---|---|---|
count | int | required work count | Y |
onWorker | function | the worker processor | Y |
onMaster | function | the master processor | N |
About count:
Value Description -1 or <0 workcount = 1, disable cluster mode. 0 workcount = cpu count, auto restart exited worker. >0 workcount = count, auto restart exited worker.