Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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