← Back to all fixes
Deployment causes downtime — requests drop during rollout
The Issue
Users see errors or connection resets for 10-20 seconds during every deployment.
Root Cause
Old container is stopped before the new one is ready. No graceful handoff of traffic.
How to Fix
Use rolling deployments — start new instance before killing old oneOn Kubernetes: configure `RollingUpdate` strategy with `maxUnavailable: 0`With Docker on a single host: use a blue-green approach — run both containers, switch nginx upstream, then stop old oneAdd health check to new container and wait for it to pass before routing trafficConfigure nginx upstream with keepalive and `proxy_next_upstream error timeout`