mod_wsgi processes seems to be lazily started i.e. on request. However, I prefer to start all the processes from the beginning because the process start up time is long. Is there a configuration option for this? or a way around it?

Here is the process configuration in case it was relevant:

WSGIDaemonProcess myapp user=user group=user processes=30 threads=1
WSGIProcessGroup myapp

Note: I'm running multiple processes each with one thread in daemon mode. apache is compiled with MPM worker

Thanks

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

You might well find that the delay isn't the time taking to spin-up the processes per se. But instead the time it takes for them to load and start delivering your app.

You can use the WSGIImportScript directive to preload processes. Which may in turn negate the delays you're seeing.

link|improve this answer
Thanks you Dan! – Mark Nov 11 '09 at 16:19
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.