Pylons attaches an "environment" dictionary to each request which contains server information, http headers and other request specific data:
http://pylonsbook.com/en/1.1/exploring-pylons.html#exploring-the-environment OK, so it sounds like it's not a problem to run a multiprocess, multithread mod_wsgi Daemon process. I have another question... I'm using mod_wsgi daemon mode to serve dynamic content and apache to serve static files. The following is a sample of the messages in my error log: [Sat Nov 28 12:24:46 2009] [info] mod_wsgi (pid=21989): Terminating Python. [Sat Nov 28 12:26:06 2009] [info] mod_wsgi (pid=22179): Attach interpreter ''. [Sat Nov 28 12:26:31 2009] [info] mod_wsgi (pid=21964): Cleanup interpreter ''. [Sat Nov 28 12:26:31 2009] [info] mod_wsgi (pid=21964): Terminating Python. [Sat Nov 28 12:26:36 2009] [info] mod_wsgi (pid=22182): Attach interpreter ''. [Sat Nov 28 12:31:34 2009] [info] mod_wsgi (pid=22205): Attach interpreter ''. [Sat Nov 28 12:32:11 2009] [info] mod_wsgi (pid=22208): Attach interpreter ''. What do these messages mean? I thought that mod_wsgi in daemon mode did not add python interpreters to apache server instances. Are these error messages from the apache processes that proxy information to and from the mod_wsgi daemon mode processes? -Andres On Nov 28, 3:04 pm, Graham Dumpleton <[email protected]> wrote: > What do you mean by 'Pylons environment'? > > Seems that something in Pylons or your application has added it as > debug or an indicator of something based on underlying > wsgi.multithread/wsgi.multiprocess flags in WSGI environment. The > mod_wsgi module itself doesn't add such a string. > > For more about those underlying flags read: > > http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading > > If it is not your application, you may need to ask the Pylons folks > why/how it gets there. > > Graham > > 2009/11/29 andres <[email protected]>: > > > > > Hi, > > > I'm using mod_wsgi in daemon mode with multiple processes and multiple > > threads as shown in this example: > > >http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDae... > > > Everything seems to be working properly but I found the following > > message inserted into the pylons environment: > > > wsgi process: "Multi process AND threads (?)" > > > Does this mean there something wrong with my configuration? > > > -Andres > > > -- > > > 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 > > athttp://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.
