Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Restarting software once a day to work around memory leaks is real amateur-hour stuff. Mine does it every 10-20 minutes.


The real pros generalized this concept into so-called "supervision trees" - building your system as a hierarchy, where whenever a program misbehaves in any way, it gets restarted by a higher-level program, which itself will also be restarted if it can't get a handle on things, recursively to the top of hierarchy.

(Yes, talking about Erlang/OTP here.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: