mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
Three comments said readiness failing before the server stops accepting gives a load balancer the chance to withdraw the instance before its connections are cut. Nothing between the two lines makes that possible: BeginDraining is immediately followed by the shutdown, and a poller on a multi-second interval never observes the flip. On Kubernetes the endpoint is withdrawn when the Pod receives a deletionTimestamp, concurrently with SIGTERM and independent of what the probe returns, so the probe result is not the mechanism there either. The order itself stands - reporting the state after the connections are cut is worse - so the comments now say the order is necessary and not sufficient, and that a window needs a configured delay that does not exist yet.