How do you achieve zero-downtime configuration reloads in nginx and HAProxy?
IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer
nginx -t && nginx -s reload starts new workers with the new config while old workers finish active requests. HAProxy uses systemctl reload haproxy (seamless reload with master-worker mode and socket passing). Envoy hot restarts or, better, dynamic xDS updates.
Always validate first, and keep configs in Git. Long-lived WebSockets keep old workers alive; set worker_shutdown_timeout.
More on Load Balancing, Proxies & nginx in Production
How do you choose between ALB, NLB and an nginx or Envoy fleet?IntermediateHow do you tune ALB idle timeout and backend keep-alive to avoid 502s?IntermediateWhich nginx directives matter most for a production reverse proxy?IntermediateHow do you do rate limiting and abuse protection in nginx?IntermediateHow would you design a highly available load-balancing tier on-prem or in a colo?AdvancedHow do you perform a blue/green deployment at the load balancer level?Intermediate