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

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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production