Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production