LWN.net Logo

Crowding out OpenBSD

Crowding out OpenBSD

Posted Nov 22, 2012 19:21 UTC (Thu) by hummassa (subscriber, #307)
In reply to: Crowding out OpenBSD by TRauMa
Parent article: Crowding out OpenBSD

does systemd (and upstart) actually solve this problem?


(Log in to post comments)

Crowding out OpenBSD

Posted Nov 22, 2012 19:36 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

Yep. SystemD can reliably track mysql's state and kill it. Mysql recovery should then take care of unclean shutdowns.

Crowding out OpenBSD

Posted Nov 22, 2012 21:37 UTC (Thu) by paulj (subscriber, #341) [Link]

How does it reliably track mysqls state btw? What would define a bad state requiring restart?

IME just because a process is running doesn't mean it's actually in a good state. You need some kind of heartbeat protocol. Does systemd implement something like that?

Crowding out OpenBSD

Posted Nov 22, 2012 22:45 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

No, the common problem with mysql is that it doesn't terminate cleanly. Its shutdown scripts can hang for minutes and _still_ leave hanging processes behind. These hanging processes later interfere with the startup.

SystemD nicely solves this problem. Hooking it up with an external heartbeat monitor should also be quite easy.

Crowding out OpenBSD

Posted Nov 22, 2012 23:25 UTC (Thu) by cortana (subscriber, #24596) [Link]

systemd can be configured to require that a service regularly notifies that it is still up, or else it'll be killed & restarted. See http://0pointer.de/blog/projects/watchdog.html for the details.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds