No you don't need to do both. Preferably use just python-path option
to WSGIDaemonProcess. Ensure you are using mod_wsgi 2.4 as that
addresses the path ordering issue mentioned in documentation and in
part does away with the need to build on a virgin virtual environment
as additional virtual environments will always take precedence over
system wide site-packages in mod_wsgi 2.4.
> For my purposes I really want each application to have its own set of
> children/deamon processes because the applications have very different
> memory profiles. i.e. I've got one very heavyweight application that I
> want to allocate just 15 processes to because the processes can
> balloon to 300+ megs, and another very lightweight high-availability
> process that usually sticks around 50 megs, so I'll probably allocated
> a good 150 processes to it.
Are your applications not thread safe? What do your applications do?
What are average and maximum request times?
I ask that as that seems to be an excessive number of processes to be
creating. For typical sub second request times you shouldn't need such
a great number.
> Anyone have some advice?
Have you at least got a single daemon mode instance running against
any sort of virtual environment? What is your current configuration
for that?
Have you worked through examples in:
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
and also read:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines
http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
Graham
On Apr 28, 2009, at 4:55 PM, Graham Dumpleton wrote:
>
> <Directory /mw/alecf/me/pyroot/scripts>
> WSGIProcessGroup me-freebase.com
> </Directory>
>
>
> So, drop WSGISocketPrefix and use WSGIProcessGroup in Directory
> context for where script is located instead of using Location context.
My only issue is that both urls "/" and "/api" are roots of WSGI
applications (paste.deploy config-based applications, really, but
that's a side issue) so there's no "scripts" directory per say... is
<Location> still going to be problematic?
Alec
Not sure what you mean. The script directory I refer to is where the
WSGI script files are located, ie., the directory containing the file
listed as last argument to WSGIScriptAlias.
Can you explain better what you mean?
Graham
My only issue is that both urls "/" and "/api" are roots of WSGIapplications (paste.deploy config-based applications, really, butthat's a side issue) so there's no "scripts" directory per say... is<Location> still going to be problematic?
Not sure what you mean. The script directory I refer to is where the
WSGI script files are located, ie., the directory containing the file
listed as last argument to WSGIScriptAlias.
Can you explain better what you mean?
Graham