Skip to content

Commit

Permalink
Improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleics committed Dec 14, 2011
1 parent ff54da1 commit 57f361e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cluster-manager
# cluster-manager

A module for Node.js that manages a cluster.

Install
## Install

`npm install cluster-manager`

Usage
## Usage

```js
var cm = require('cluster-manager');
Expand All @@ -15,23 +15,23 @@ var options = {
};
var master = cm.run(options);
if(master) {
// we're in the master-process
// we're in the master-process
}
```

See `./app/index.js` for a minimum app-file.

Master Interface
## Master Interface

`.getPIDs()`
`.fork([cb])`
array `.getPIDs()`
worker `.fork([cb])`
`.stop(pid)`
`.restart(pid)`
`.restartAll()`
`.restartZDT(pid)`
`.restartZDT(pid)`
`.restartAllZDT()`

Features
## Features

* Forks one worker per CPU by default (can be raised or lowered)
* Reload of workers with a zero-down-time option
Expand Down

0 comments on commit 57f361e

Please sign in to comment.