Process Auto-Restarts

Discussions center on the practice of automatically restarting crashed server processes and daemons, debating whether it masks bugs or ensures reliability, including tools like process managers and philosophies like 'let it crash'.

📉 Falling 0.4x DevOps & Infrastructure
4,226
Comments
20
Years Active
5
Top Authors
#371
Topic ID

Activity Over Time

2007
6
2008
19
2009
54
2010
76
2011
94
2012
100
2013
188
2014
276
2015
284
2016
291
2017
260
2018
205
2019
293
2020
312
2021
306
2022
436
2023
372
2024
340
2025
284
2026
30

Keywords

e.g DNS JVM IMO OSX forever.js supervise.html cluster.js AWS GenServer restart crash processes daemon instances crashes process cleanup init reboot

Sample Comments

eru Oct 12, 2024 View on HN

Yes, you should semi-regularly restart everything (both OS and server processes), so you know you can bring them back up.

pikahumu Aug 9, 2023 View on HN

Don't you want to know if something restarts unexpectedly? It's a bug that should be understood and fixed. (If it's not a bug then it's not unexpected.)

astrodust Jun 22, 2015 View on HN

How many reboots per second are you having to endure? Maybe you should make your server process crash less often.

jterrys Jun 24, 2024 View on HN

"we can't figure out why this thing restarts so we seamlessly made it restart with no downtime by having a load-balancer/backup that kicks in when it kicks down"

otterley Nov 26, 2013 View on HN

Perhaps, but there are plenty of scenarios where restarting won't help (e.g. daemon misconfiguration).

Solim Nov 8, 2023 View on HN

Same as restarting a server. It is something that should be running all the time so turning it off points to something not working, and asking for a valid reason makes sense.

Volt Aug 19, 2018 View on HN

Your process manager can alert you when a restart happens. You can then fix the problem.

polski-g Nov 29, 2019 View on HN

I've been using this for years on sysvinit systems for processes which are known to crash. It's great.

talles Mar 17, 2014 View on HN

This. It's pretty rare cases in that I have to actually restart the system.

skybrian Dec 30, 2022 View on HN

It's not fully general, but crashing and letting the outer system handle the restart can make sense for servers. The system needs to handle restarts anyway.It usually works okay unless there's a "query of death" causing repeated restarts.Similarly for command line apps.