Drain In-Flight Connections Before Stopping Containers
Ensure Puma or Node HTTP servers listen for SIGTERM, stop accepting new connections, finish in-flight requests, and fail readiness probes cleanly during target-group deregistration.
- Separate database migration jobs from rolling web container boot
- Expose lightweight /up health endpoints checking DB & Redis pools
- Verify automated rollback triggers on 5xx error spikes