[Mongrel] Why Rails + mongrel_cluster + load balancing doesn'twork for us and the beginning of a solution

Paul Butcher paul at paulbutcher.com
Fri Sep 22 04:51:54 EDT 2006

> (*Laziness kicks in*) How do you find...which one of mongrel id idle?

It's a fantastically subtle and complicated algorithm. Not.

The main thread handles incoming connections, and then there's one thread
per worker. The main thread does this:

  while request = server.accept
    queue.push request

And each worker does this:

  loop do
    request = queue.pop

    # Handle the request ...


Snetterton, Castle Combe, Cadwell Park...
Who says I have a one track mind?

MSN: paul at paulbutcher.com
AIM: paulrabutcher
Skype: paulrabutcher
LinkedIn: https://www.linkedin.com/in/paulbutcher

More information about the Mongrel-users mailing list