This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Shutdown gracefully #161
Comments
Definitely want to do this at some point. We might need to address #96 first. |
#27 is also potentially related. |
This was referenced Jul 23, 2019
Another part of this will be revisiting all uses of |
3 tasks
This was referenced Dec 3, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
About
Mesh should attempt to gracefully shutdown upon receiving a
SIGTERM
, basically allowing it to drain active connections and shutdown services. In the future it should also respond asunhealthy
/unready
when probed for health or readiness.Having a graceful shutdown would also benefit operators running mesh on Kubernetes (and probably other orchestration tools), as when pods are to be updated/moved/evicted
kubelet
sends aSIGTERM
to the main process and waits for up to a grace period (by default 30 seconds) until it sends aSIGKILL
.Below is a rough sketch implementation of that, however I should deliver a working and tested PR in the coming days if interested!
Rough implementation
The text was updated successfully, but these errors were encountered: