[Mongrel] Determining ideal number of Mongrels for an app?
jacob at jacobatzen.dk
Tue Nov 28 15:13:25 EST 2006
On Tue, Nov 28, 2006 at 11:03:06AM -0600, Philip Hallstrom wrote:
> > What's a rule of thumb for guesstimating how many
> > Mongrels to use in a cluster for an app? I have an app
> > that gets about 5000 unique visitors per day. I
> > figured I'd give it plenty of Mongrels -- twenty to be
> > specific. After running out of memory and hitting the
> > swap periodically, I scaled it back to five and it
> > still seems to serve up visitors fine. So, is there
> > some super-secret math fomula I can use to determine
> > the ideal number of Mongrels I should start in a
> > cluster for an app?
> Just for reference, we get about 500,000 pages a day and run 4 mongrel
> processes... we've got about 20 servers, but 4 gives us the best
I'm curious - do you have 4 * 20 Mongrels or just 4? How many
requests/sec does Rails report in your logs?
- Jacob Atzen
More information about the Mongrel-users