wpm2
v0.0.10
Published
Wickr Process Manager
Downloads
21
Readme
wpm2
An opinionated Node.js process manager inspired by PM2.
All processes:
- Are spawned in Cluster mode
- Log to stdout/stderr (preferrably structured in JSON)
- Are automatically restarted with exponential backoff
Things it doesn't (currently) do
- Provide any functions other than
wpm2 start
- Use separate log streams or log files for the worker processes
- Phone home to https://version.pm2.io/
Usage
wpm2 start app.json
Example JSON configuration
{
"apps" : [{
"name": "http",
"script": "./http.js",
"instances": 3,
"max_memory_restart": "128M",
"node_args": ["--nouse-idle-notification"],
"env": {
"NODE_ENV": "production"
},
"args": []
}]
}