1

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

2 Answers 2

1

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.

0
0

Read my answer to:

https://stackoverflow.com/questions/1702562/speeding-up-the-first-page-load-in-django

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .