tutorials29 min read
Zero-Downtime Deploys Promised, 150 Errors per Deploy Delivered: The Missing Half of Graceful Shutdown
The API runs as two replicas, deploys replace them one at a time, and the proxy probes each replica's /ready every 2 seconds. Even so, ~150 requests fail with 502 on every deploy. We look step by step at what the code's 'graceful' shutdown skips, how a load balancer finds out that a replica is gone, and the recipe for zero errors in a rolling deploy (announce, drain, close).