Thank you for the information! On Mon, Dec 7, 2015 at 8:20 PM, Graham Dumpleton <[email protected] > wrote:
> > On 7 Dec 2015, at 11:08 PM, Kent Bower <[email protected]> wrote: > > If running in daemon mode like this: > WSGIDaemonProcess rarch processes=30 threads=8 inactivity-timeout=1800 > display-name=%{GROUP} python-eggs=/home/app/tg2env/lib/python-egg-cache > > Is there any substantial advantage of worker MPM over prefork? It seems > to my understanding that daemon mode overcomes the limitations of prefork. > > > By running prefork, you still risk two things. > > The first is that if you don’t disable Python interpreter initialisation > in the Apache child worker processes, that will slow spin up of prefork > worker processes, plus still cause a lot more memory to be used that > necessary. > > The second is that how Apache dynamically adjusts the number of child > worker processes causes a lot more worker process churn with prefork. This > is made much worse when Python interpreter initialisation isn’t disabled. > > Using worker MPM is still preferred because in most cases people still > don’t adjust the MPM settings appropriately and so worker MPM is more > forgiving to things not being done properly. You don’t even describe what > MPM settings you are using, yet they are still quite important. > > For further research see/read: > > http://lanyrd.com/2013/pycon/scdyzk/ > http://blog.dscpl.com.au/2009/11/save-on-memory-with-modwsgi-30.html > > 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/x13TaeLBpWU/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.
