Interview Prep/Networking/Performance, Cost & Scale

How do you reach 100k+ concurrent connections on one proxy?

AdvancedProductionPerformance, Cost & Scale
Answer

File descriptor limits (LimitNOFILE=1048576 in systemd), worker_connections sized accordingly, adequate memory (about 10 KB or more per idle TLS connection), conntrack sized or bypassed, RSS and IRQ affinity across cores (ethtool -L, irqbalance), keep-alive and event-driven server (epoll), and reuse port with multiple listeners.

Load test with wrk, tcpkali or k6 from several machines, since a single client hits ephemeral port limits at 64k connections per destination.

All Networking questions Roadmap: Networking for DevOps

More on Performance, Cost & Scale