logoalt Hacker News

hinkley • yesterday at 10:42 PM • 2 replies • view on HN

The problem there is that is opens the feedback loop for memory leaks. And that becomes a situation that hits around the holidays because you deploy less which means the application runs 2, 3x longer than it usually does, for three weeks out of seven.


Replies

xyzzy_plugh • yesterday at 10:50 PM

I highly, highly recommend a forced rotation of a week max, such that all deploys/hosts roll over on a weekly basis. For large clusters I recommend that nodes continuously churn so that there is always a rotation in progress.

I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability.

➕ show 2 replies
PhilipRoman • yesterday at 11:38 PM

In some high reliability contexts you actually don't want an uptime higher in production than you've tested. This is not just due to leaks but various potential counter overflows, etc. If there is no significant degradation for the user, there is little reason to not reset the system periodically.

But I wouldn't necessarily aggressively restart servers that rely on netboot or other quirky, non-self-healing tech (systemd service ordering, DHCP, various VPN and network drive implementations)

➕ show 1 reply