Requirements
-
file_path:path of main server applicaiton file
-
arguments:args to pass to workers
-
log_status:param to show log
-
restart:param to restart instance if stopped
Installation
$ npm install core-cluster
How to use
var cluster=; //path of main server applicaiton filevar file_path='/server.js'; //arguments var arguments=; //show log var log_status=true; //restart instance if it get stoppedvar restart=true; cluster;