Ben Bangert wrote:
> On Dec 13, 2006, at 8:08 PM, Graham Dumpleton wrote:
>
> > Which is easily avoided if you compile Apache to use the "worker" MPM
> > rather than "prefork". When using "worker" MPM you have more than one
> > thread in each Apache child process with the ability to handle
> > concurrent requests. At the same time you can still benefit somewhat
> > from multiple child Apache processes like "prefork". A typical
> > configuration may be:
> >
> > <IfModule mpm_worker_module>
> > StartServers 2
> > MaxClients 150
> > MinSpareThreads 25
> > MaxSpareThreads 75
> > ThreadsPerChild 25
> > MaxRequestsPerChild 0
> > </IfModule>
> >
> > Thus, number of actual processes required is a lot less.
>
> Yep, very true. Though note that given such a setup you're maxed at
> 150 connections, the async based front-end reverse capable proxies
> like squid and nginx spawn no additional threads or processes per
> connection and can easily handles thousands of connections. I rather
> like squid as it can do caching which saves me hits to back-end app
> servers entirely, giving me a nice bump in speed. Of course, one has
> to be product in setting HTTP cache headers in their dynamic pages to
> get the most of this setup.
That configuration was the default for Apache 2.2, you can change it.
FWIW, the default for 'prefork' when using Apache 2.2 is:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
Thus it has a max clients setting of 150 as well. Anyone setting up a
serious web site would review any such defaults and modify as
appropriate. If your hardware supports it and the amount of site
traffic warrants it, then by all means change the values.
But then you are talking purely about proxying as well, so to compare
it to Apache may not be fare in that case as Apache could be doing a
whole lot more than proxying. The application could for example be
running within Apache and not behind it, so the proxying performance
would not be an issue then.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---