3 ms·
So what's everyone's take on restarting servers every now and then? I think that it might be something that you do occasionally (say, once a month or so) for e
by KronisLV 4y ago
So what's everyone's take on restarting servers every now and then?
I think that it might be something that you do occasionally (say, once a month or so) for each of your boxes, regardless of whether it's a HA system or not.
Though perhaps I can only say that because the HA systems/components (like API nodes or nodes serving files) won't really see much downtime due to clustering, whereas the non-HA systems/components (monoliths, databases, load balancers) that i've worked with have been small enough for it to be okay to do restarts in the middle of the night (or just weekends or whatever) with very little impact to anyone, even without clustering at the DB level/switchovers.
I mean, surely you do need to update the servers themselves, set aside a bit of time for checking that everything will be okay and don't try to patch a running kernel most of the time, right? I'd personally also want to restart even hypervisor or container host nodes occasionally to avoid weirdness (i've had Docker networks stop working after lots of uptime) and to make sure that restarts will result in everything actually starting back up afterwards successfully.
Then again, most of this probably doesn't apply to the PaaS folk out there, or the serverless crowd.
- gjulianm 4y agoThe more time it passes, the less need I see for periodic restarts. For example, a few years ago I would need to restart some servers due to memory fragmentation that would cause some allocations to fail (we needed some processes to get big chunks of continuous memory). Right now it doesn't happen. Memory leaks are rarer, and in general things work well. I have some servers with more than a year uptime and still working well.