worker MPM vs. prefork when running daemon mode

47 views
Skip to first unread message

Kent Bower

unread,
Dec 7, 2015, 7:08:16 AM12/7/15
to mod...@googlegroups.com
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.

Graham Dumpleton

unread,
Dec 7, 2015, 8:20:53 PM12/7/15
to mod...@googlegroups.com
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:


Graham

Kent Bower

unread,
Dec 8, 2015, 9:11:37 AM12/8/15
to mod...@googlegroups.com
Thank you for the information!

--
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 modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages