Re: Simultaneous connections

Philip Hallstrom
Wed, 19 Sep 2007 20:59:19 -0000

> I don''t want to hijack the thread, but I think answers to my
question
> will be just as useful for the OP.
>
> I''m relatively new to this game... can someone explain the
ramifications
> of this?  When you say "simultaneous connections", what does that
> mean... what is the lifespan of each?  Is it open sessions we''re
talking
> about? Or just the processing time of a page view?

I would define it as "number of active requests being served by rails"
such that if I ran two mongrels I could have a maximum of *two*
simultaneous connections.

However, two mongrels is enough to serve a lot of traffic if the requests
don''t take much time (ie. not uploading files, etc.)

> For example... if a site gets 6000 hits an hour, from 1000 users each
> checking in every 10 minutes, what does that mean in terms of mongrel
> processes?

Depends on the site.  Certainly don''t need more than two.  6000
hits/hour
is only 1.6 hits / second.  That''s not that much traffic at all.
Assuming
it''s nicely spread out across the entire hour :)