[ECODP-dev] WSGI processes

Dimitrios Mexis dimitrios.mexis at tenforce.com
Mon Jun 17 09:55:20 UTC 2013


Hi reading this document
https://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Defining_Process_Groups

I read this section and I have now the question, is that ok we have
processes=6 instead of 1 ?
and why have we six  ?

*processes=num*

Defines the number of daemon processes that should be started in this
process group. If not defined then only one process will be run in this
process group.

Note that if this option is defined as 'processes=1', then the WSGI
environment attribute called 'wsgi.multiprocess' will be set to be True
whereas not providing the option at all will result in the attribute being
set to be False. This distinction is to allow for where some form of
mapping mechanism might be used to distribute requests across multiple
process groups and thus in effect it is still a multiprocess application.
If you need to ensure that 'wsgi.multiprocess' is False so that interactive
debuggers will work, simply do not specify the 'processes' option and allow
the default single daemon process to be created in the process group.


Regards
Dimitrios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130617/af0bf939/attachment.html>


More information about the ecodp-dev mailing list