Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monai/pm
Nodejs process manager POC
https://github.com/monai/pm
Last synced: 4 days ago
JSON representation
Nodejs process manager POC
- Host: GitHub
- URL: https://github.com/monai/pm
- Owner: monai
- Created: 2014-02-25T19:52:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-25T20:42:39.000Z (over 10 years ago)
- Last Synced: 2023-08-03T08:12:13.149Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pm
Nodejs process manager POC.
## Spawn some processes
`node m.js -n 4 -- app.js 8000`What happens:
- Created `lock` and `pool` directories.
- `lock` stores process pid files.
- `pool` stores unix sockets created by spawned processes.## Run load balancer
`node balancer.js`What happens:
- Requests are made in roun-robin manner to all sockets in `pool`.
- `pool` is watched for changes: new sockets will be added to and missing will be removed from the queue.## Kill all processes
`node m.js -k`What happens:
- Processes are killed, pid files and sockets are removed.
- Check for zombie processes: `ps aux | grep node`.
- Orphaned pid files and sockets are deleted.