lloyd / node-toobusy

Build Node.JS servers that don't fall over.
1.3k stars 128 forks source link

It will be nice to point out this from your README #14

Closed c4milo closed 11 years ago

c4milo commented 11 years ago

http://www.kegel.com/c10k.html#tips

Behave sensibly on overload. [Provos, Lever, and Tweedie 2000] notes that dropping incoming connections when the server is overloaded improved the shape of the performance curve, and reduced the overall error rate. They used a smoothed version of "number of clients with I/O ready" as a measure of overload. This technique should be easily applicable to servers written with select, poll, or any system call that returns a count of readiness events per call (e.g. /dev/poll or sigtimedwait4()).