node-clusterize-cli
v1.1.5
Published
Simple CLI interface for clusterize and demonize your apps
Downloads
16
Readme
Node Clusterize CLI
Simple CLI interface for clusterize, demonize your apps. Also, it starts again fallen instances of your application.
Install
npm i -g node-clusterize-cliUsage
$ clusterize --app ./test/express/app.js --workers 32 --log ./cluster.log
doneArguments
Usage: clusterize [options]
Options:
-h, --help output usage information
-V, --version output the version number
list list of running custers
kill <pid> stop daemon and all it's workers
-a, --app <path> Add path to demonizing app
-w, --workers <q> Set quantity of workers for your app. Defaut value is cpu.cores*2
-l, --log <path> Add path to demonizing appStart
$ clusterize --app ./test/express/app.js --workers 32 --log ./cluster.log
doneList
$ clusterize list
53416 test/express/app.jsKill
$ clusterize kill 53416
done

