[Mongrel] Mongrel and memory usage

Kirk Haines wyhaines at gmail.com
Mon Nov 5 14:02:53 EST 2007

On 11/5/07, Pete DeLaurentis <pete at nextengine.com> wrote:
> What is a good value for --num-procs for rails applications, since
> these are single threaded?  Does it depend on how fast the
> application responds to users?

It's application specific.  Your sweet spot is going to be big enough
that you don't experience capacity starvation during load bursts when
you have temporary periods where more traffic is coming in than you
are clearing, but small enough that you don't waste resources.
Experimentation will probably be required to find the best balance.

If you try evented_mongrel, you don't need to worry about num_procs.
It's irrelevant for the evented_mongrel.

Kirk Haines

More information about the Mongrel-users mailing list