33Walk me through nginx internals: what do the master and workers each do, and how does one worker hold thousands of connections?▼easyNewTCSAccentureGitLab◆ premiumThe answer that lands is about one epoll loop per core, not config snippets. Master versus worker duties, the arithmetic of worker_connections, and the limits people forget to raise.Open full answer →
39Since the load balancer went in, every log line shows its IP. How do you recover the real client address?▼mediumNewCloudflareStripeDatadog◆ premiumX-Forwarded-For, PROXY protocol v1 and v2, and the trust boundaries between them. Get the layer wrong and your rate limiting, geo rules and audit trails all key off the balancer's address.Open full answer →
19Requests pile up at the nginx edge, one core is pegged at 100 percent, and the backends look bored. Walk me through it.▼mediumNewCloudflareFlipkartSwiggy○ sign inOne saturated core on a proxy is rarely about raw traffic volume. It is a parallelism failure with three usual suspects, and the per-thread view names the culprit in minutes.Open full answer →