by eru · 2y ago · 0 comments
Why is rebooting offensive to you? State is hard; resetting your system to know state can fix many issues.
I have a linux computer running a public server that has not be restarted in three and a half years. This is what I expect.
Every time I have to reboot my work laptop due to work pushing some updates or that I have to reboot my windows machine because it is running unreasonably slow, I am reminded that inconsiderate assholes have become more lazy and are ok with polluting the whole system, mismanaging state and resiliency, and when the equivalent of the microwave has an error, the only solution is rebooting my house. We can do better.
I restart my Linux desktop every few weeks, when the kernel updates.
For a reliable server, you want to exercise the restart ritual somewhat regularly, because when anything goes wrong (eg with the hardware), you might have to restart anyway, so you want to be sure that this works.
Yeah state is hard, but "else" statements are a thing. Even if a state is not "expected" if the system can represent it, it should be treated as possible.
Crash if you have to, but don't do unexpected things or just stop executing.