How would you design a highly available load-balancing tier on-prem or in a colo?
AdvancedProductionLoad Balancing, Proxies & nginx in Production
Answer
Two or more HAProxy/nginx nodes with a floating VIP via keepalived (VRRP), or active-active with ECMP/BGP announcing the same VIP from each node (Cilium, MetalLB, Katran). Health scripts withdraw the VIP when a node fails. Add DNS or anycast across sites for site failure.
Test failover with real traffic. VRRP needs L2 adjacency or unicast mode, and does not work as-is in public clouds.
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 do you achieve zero-downtime configuration reloads in nginx and HAProxy?IntermediateHow do you perform a blue/green deployment at the load balancer level?Intermediate