Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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