On 22 September 2011 03:54, Lisper <[email protected]> wrote: > I'm still confused about something: The configuration above gives me > multiple Python sub-interpreters all running in the same unix process > (presumably the main Apache process?) But what I really want (I think) is > multiple pythons each running in their own process so that they can run in > parallel. I can get this by changing WSGIApplicationGroup %{GLOBAL} > to WSGIApplicationGroup appX. Is that right? And is there a reason you > recommended the single-process configuration?
WSGIProcessGroup is for processes. WSGIApplicationGroup specifies the embedded sub interpreter within the process. Don't equate interpreter with having a process of its own. So that configuration specified two separate processes, distinct from Apache processes, with each application running separately. When run up in their distinct processes they ran in the first interpreter created when embedded Python was initialised. So yes, you are a bit confused. :-) Read: http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Embedded_Or_Daemon_Mode http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Sub_Interpreter_Being_Used http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Single_Or_Multi_Threaded See also the display-name option to WSGIDaemonProcess so you can name the processes and distinguish them in 'ps' output. http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess Graham > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/modwsgi/-/0-j7tSo5n9wJ. > 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/modwsgi?hl=en. > -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en.
