https://github.com/pawk/node-pool
Run a cluster with process guard
https://github.com/pawk/node-pool
Last synced: 27 days ago
JSON representation
Run a cluster with process guard
- Host: GitHub
- URL: https://github.com/pawk/node-pool
- Owner: pawk
- Created: 2018-09-08T15:02:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-10T10:39:29.000Z (almost 8 years ago)
- Last Synced: 2025-04-03T16:43:49.716Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nodead
Features:
* run a cluster,
* orchestrate workers pool (add, remove, scale workers group),
* keep the workers group of fixed size - workers disaster recovery
## Install
```
git clone git@github.com:pawk/node-pool.git
```
There are no dependencies for this project.
## Run
```
node src/index.js [worker/file/path]
```
## Application commands
#### `ls`
lists all the workers
#### `fork`
forks cluster with another worker
#### `scale [size]`
Autoscales workers group to desired size
#### `kill [num]`
kills worker denoted by `num` parameter
#### `exit`
exits from the application