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.
More on Performance, Cost & Scale
How do you reduce cross-AZ data transfer costs?IntermediateWhat are the main drivers of AWS network cost and how do you control each?IntermediateHow do you find what is driving a surprise NAT gateway bill?AdvancedHow do you tune Linux network settings for a high-traffic server?IntermediateHow do you choose instance types for network-heavy workloads on AWS?IntermediateWhat is a placement group and when does it matter for networking?Intermediate