3 ms·
Thundering herd is an efficiency problem on certain implementations of UNIX servers. The accept()-issue you're referring to is merely a popular manifestation o
by moe 16y ago
Thundering herd is an efficiency problem on certain implementations of UNIX servers.
The accept()-issue you're referring to is merely a popular manifestation of the thundering herd problem.
The term is nowadays also used in a broader sense to describe similar situations in distributed systems.
It's not a common reason why servers crash when overloaded.
Again, nobody is talking about servers crashing here.
We are talking about web applications (which usually consist of multiple servers talking to each other) degrading to the point of not serving a meaningful rate of requests anymore.
In that context the role of the "thundering herd" is often taken by your own users, who will furiously smash their reload-buttons to get past those 500-errors.
It's an extra conditional in the event loop. Am I serving N or more clients right now?
You're talking about implementation details of a socket server. I was talking about entire applications.