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.

> Unfortunately mod_python gets quite a bad rap at times and where when
> one delves into it is often based on experiences people have had with
> quite old versions. That isn't to say that the current version doesn't
> have problems, but version 3.3 which is just about to be released  
> fixes
> just about all known issues and should be much much better. The new
> version also incorporates a lot of new features. Thus, don't give  
> up on
> mod_python completely, but would be a good idea to move to 3.3 as soon
> as you can.

I've had great experiences with mod_python as well, in my particular  
setup it just wasn't the best choice. YMMV :)

Cheers,
Ben

--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to