Ask HN: keeping services up and running?
Services are born into a life of sweat and suffering, but some can't stand the beating or the garbage being thrown at them, and they die on you. Hence the question:
What are you using to keep them always up and running?
I've used djb's daemontools some 6 years ago, and it was okay back then, but I wonder what is being used by those setting up their gear now. I've also compiled this quick list of players in this space after some googling and asking around:
* monit http://mmonit.com/monit/
* supervisord http://supervisord.org/
* daemonize http://bmc.github.com/daemonize/
* runit http://smarden.sunsite.dk/runit/
* perp http://b0llix.net/perp/
* launchd http://launchd.macosforge.org/
* DJB's daemontools http://cr.yp.to/daemontools.html
Pointers to alternatives, too, are greatly appreciated!Thank you!
(
15 comments
| 36 points
| on HN
)
See: http://dustin.github.com/2010/02/28/running-processes.html
I like monit, but it has a weird habit of running super-slowly, failing to restart services, or otherwise flaking out.
For the next project, I'm going back to daemontools, for a multitude of reasons. Between the /service directory and the svc command, automating stuff is ridiculously easy. I can get the active health check stuff by writing a ten-line script that does a much better check on a server than the generic checks monit provides. I can get emails when bad stuff happens with logcheck.
Daemontools is just so goddamn unixy.
It's great using tools like Heroku, who then teams up with awesome other services and then provides great tools to really make life easy as a developer.
I really enjoy supervisord personally, it feels similar to daemontools in execution but has a somewhat friendlier interface all around.
I've also used daemontools in the past and never had an issue with it, either.
I've heard good things about god, but I've not used it myself. (Now there's a sentence that could be taken out of context.)
I'm always looking forward to infrastructure/scaling/systems-engineering posts like these.
i didn't need millisecond accuracy in detecting rogue processes, so i just switched to a small, custom script that runs from cron every minute.
I wrote a quick snippet on how we setup the basics of Monit and also talked about God as well: http://artchang.com/?sort=&search=monit
I got it through a post much like this one.