Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a/node-clusterize-cli
The simplest CLI interface for clusterize and demonize your apps
https://github.com/a/node-clusterize-cli
Last synced: 6 days ago
JSON representation
The simplest CLI interface for clusterize and demonize your apps
- Host: GitHub
- URL: https://github.com/a/node-clusterize-cli
- Owner: A
- Created: 2013-12-13T11:18:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-13T22:04:51.000Z (almost 9 years ago)
- Last Synced: 2024-04-23T11:18:36.836Z (7 months ago)
- Language: JavaScript
- Homepage: http://shuvalov-anton.github.io/node-clusterize-cli
- Size: 375 KB
- Stars: 26
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Node Clusterize CLI
[![Build Status](https://secure.travis-ci.org/shuvalov-anton/node-clusterize-cli.png)](http://travis-ci.org/shuvalov-anton/node-clusterize-cli)
[![Code Climate](https://codeclimate.com/github/shuvalov-anton/node-clusterize-cli.png)](https://codeclimate.com/github/shuvalov-anton/node-clusterize-cli)[![NPM](https://nodei.co/npm/node-clusterize-cli.png?downloads=true)](https://nodei.co/npm/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-cli
## Usage
$ clusterize --app ./test/express/app.js --workers 32 --log ./cluster.log
done### Arguments
Usage: clusterize [options]
Options:
-h, --help output usage information
-V, --version output the version number
list list of running custers
kill stop daemon and all it's workers
-a, --app Add path to demonizing app
-w, --workers Set quantity of workers for your app. Defaut value is cpu.cores*2
-l, --log Add path to demonizing app### Start
$ clusterize --app ./test/express/app.js --workers 32 --log ./cluster.log
done### List
$ clusterize list
53416 test/express/app.js### Kill
$ clusterize kill 53416
done