Monitored multi-process servers
Watchdog is a package that is used in the Steelmesh stack to:
- spawn child server processes and set up valid proxy redirects for those services using distribute
- monitor those spawned processes to ensure that their consumption of system resources is within acceptable limits.
It was written to help deal with those situations where some memory leaking code manages to sneak through to a production environment and cause all kinds of mischief.
Using watchdog is pretty simple, and if you have an existing node web application that is written using express, node-restify, or anything that exposes a listen call in a server.js file then you can have watchdog run it and monitor it for you.