I'm coming from using nginx + apache2 worker_mpm. Good to hear there are no known issues with the event mpm.
On Mon, May 5, 2014 at 8:30 PM, Graham Dumpleton <[email protected]> wrote: > > On 06/05/2014, at 2:07 AM, [email protected] wrote: > >> I'm trying out Ubuntu 14.04 and noticed the default apache2 mpm is now >> event. I use daemon mode for wsgi. Is there any advantage to switching the >> mpm to threaded? Are there any known issues with using the event mpm with >> wsgi? > > I know of no issues with using event MPM with mod_wsgi. > > When you ask 'Is there any advantage to switching the mpm to threaded?' does > that mean you were previously using prefork MPM? > > Using prefork has various issues, although if you are using daemon mode you > most avoid them. > > If using prefork MPM though and daemon mode exclusively, you should at least > ensure you disable the Python interpreters in the main Apache child processes > to reduce memory usage and startup time for those processes. > > http://blog.dscpl.com.au/2009/11/save-on-memory-with-modwsgi-30.html > > As to event MPM vs worker MPM, the event MPM is supposed to better in various > ways, especially in how it handles keep alive connections. But then, keep > alive connections can themselves be dangerous and affect server capacity. > Generally would recommend nginx be placed in from of Apache if keep alive > with client is important. With nginx in front it will handle keep alive with > less resources and you would turn it off in Apache. > > Anyway, as usually various pros and cons of different approaches and to a > degree what you should use depends a lot of your specific Python web > application. In other words, you can't necessarily make decisions about the > server architecture and configuration without taking into consideration your > specific Python web application. > > Some stuff to watch if you haven't before. > > http://lanyrd.com/2012/pycon/spcdg/ > http://lanyrd.com/2013/pycon/scdyzk/ > > Graham > > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "modwsgi" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/modwsgi/KrVudZx7mbA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
