I've been reading a ton of stuff. The mod_wsgi docs are amazingly detailed and thorough. Unfortunately, I'm still not 100% clear on the proper configuration directives with prefork settings in Apache, and mod_wsgi running in daemon mode.
For context, at work we are are running small EC2 instances (1.7 GB of RAM) with Debian Lenny with Python 2.5.4, Apache 2.2, mod_wsgi 3.1 and Django. The application is small now, but I'm trying to get a handle on how to set things up for future load....let's assume it could peak at 100 req/sec. >From what I understand, Apache will run multiple child processes, up to MaxClients..let's say it's 100. In daemon mode, given the following configuration: WSGIDaemonProcess myapp.com processes=20 threads=5 20 daemon processes will start up, each which can have 5 threads running inside of it. The questions: - is my understanding correct? - In daemon mode, is it better to have threads=1 with proccess == MaxClients? - What should be the relationship between MaxClients and the number of processes and threads? What happens if MaxClients > processes, or > processes * threads? Insight appreciated, BZ -- 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.
