[Mongrel] random cpu spikes, EBADF errors

Zed A. Shaw zedshaw at zedshaw.com
Tue Oct 30 08:50:15 EDT 2007

On Tue, 30 Oct 2007 10:53:29 +1100
Clifford Heath <clifford.heath at gmail.com> wrote:

> Surely it's preferable to just delay the accept() until there's a  
> thread to
> assign it to? That way the client sees a slow connection-establishment
> and can draw their own conclusions, including deciding how long to
> wait or whether to retry.

No, then the load balancer gets bound waiting for a response from a backend that can't respond.  This causes the load balancer to get a ton of dead sockets.

The LB should take the closed connection to mean "backend screwed, try again" and move to the next one.

Zed A. Shaw
- Hate: http://savingtheinternetwithhate.com/
- Good: http://www.zedshaw.com/
- Evil: http://yearofevil.com/

More information about the Mongrel-users mailing list