How do you capacity-plan a load balancer?
IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer
Measure new connections per second, active connections, requests per second, processed bytes and TLS handshakes per second. ALB scales automatically but needs time: for scheduled spikes ask AWS for pre-warming or ramp traffic. NLB scales to millions of connections without warm-up.
For self-managed proxies size CPU for TLS handshakes (ECDSA certs are much cheaper than RSA 4096), file descriptors (ulimit -n), conntrack, and ephemeral ports to upstreams.
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 would you design a highly available load-balancing tier on-prem or in a colo?Advanced