agent icon indicating copy to clipboard operation
agent copied to clipboard

Decide if we need to implement graceful shutdown or something similar

Open soenkeliebau opened this issue 4 years ago • 0 comments

The kubelet has gained the ability to perform a graceful shutdown [1] when the host system is being powered down.

We should evaluate, whether we want to match this behavior or implement something similar. I'm not sure that we"d want to evict nodes from the agent, but maybe setting PodConditions and performing orderly shutdowns on the services managed by the agent would be useful.

Kubelet uses inhibitor locks [2] for this purpose, which allows it to delay a shutdown for a short period to perform some cleanup tasks. This would be a very useful feature to have, to give services a chance to flush/cleanup/commit/whatever they need before being shut down.

[1] https://kubernetes.io/blog/2021/04/21/graceful-node-shutdown-beta/?utm_source=pocket-app&utm_medium=share [2] https://www.freedesktop.org/wiki/Software/systemd/inhibit/

soenkeliebau avatar Apr 27 '21 07:04 soenkeliebau