Tagged articles
10 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Oct 21, 2023 · Backend Development

Why Nginx Doesn’t Fall Victim to the Thundering Herd Problem

This article explains the thundering herd phenomenon in multi‑process servers, walks through Nginx’s master‑worker architecture and its use of epoll, and compares three practical mitigation techniques—accept_mutex, EPOLLEXCLUSIVE, and SO_REUSEPORT—complete with code excerpts and configuration examples.

BackendNginxSO_REUSEPORT
0 likes · 9 min read
Why Nginx Doesn’t Fall Victim to the Thundering Herd Problem
Liangxu Linux
Liangxu Linux
Sep 30, 2023 · Backend Development

How Nginx Tackles the Thundering Herd Problem with epoll and Advanced Locks

This article explains the thundering herd phenomenon in multi‑process servers, examines Nginx’s master‑worker architecture, and details three mitigation techniques—accept_mutex, EPOLLEXCLUSIVE, and SO_REUSEPORT—showing how each leverages epoll and kernel features to reduce unnecessary wake‑ups.

SO_REUSEPORTaccept_mutexepoll
0 likes · 9 min read
How Nginx Tackles the Thundering Herd Problem with epoll and Advanced Locks
Qu Tech
Qu Tech
Jan 25, 2021 · Operations

How to Diagnose and Fix High Load with Low CPU Utilization in Nginx

This article walks through Linux process states, fork/exec creation, CPU vs load metrics, network I/O models, and a real‑world Nginx high‑load case, showing how strace, accept_mutex, and SO_REUSEPORT can resolve the issue.

Linux performanceNginxSO_REUSEPORT
0 likes · 12 min read
How to Diagnose and Fix High Load with Low CPU Utilization in Nginx
ITPUB
ITPUB
Apr 3, 2016 · Operations

Why Nginx Proxy Stops Accepting New Connections with fastsocket – A Full Diagnosis

The article walks through a real‑world investigation of an Nginx HTTP forward proxy on an Alibaba Cloud server that stops accepting new connections after a while, detailing hypothesis testing, strace analysis, fastsocket feature toggles, accept_mutex behavior, and the final fix by adjusting the NIC's RPS settings.

NginxRPSaccept_mutex
0 likes · 9 min read
Why Nginx Proxy Stops Accepting New Connections with fastsocket – A Full Diagnosis