multi_runner
v1.1.2
Published
Run nodejs application on multicore processor
Downloads
102
Readme
multi_runner
Run nodejs application on multicore processor, currently only tested on Linux
Every stdout
and stderr
output are prefixes with PID, stdin
is not used. 12factor principle.
If one of the sub-process exited with non-zero status code, or killed by signal, the entire cluster will be terminated. FailFast principle.
It should be the supervisor responsibility to restart the service.
It suitable for docker container. For PID1 please use docker_pid1
how to install
using git
npm install git+https://[email protected]/payfazz/multi_runner.git
using npm registry
npm install multi_runner
how to use
let's say the script is server.js
$ export PATH=$PWD/node_modules/.bin:$PATH
$ multi_runner server.js