Also, what modules Apache is currently loading. http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Apache_Modules_Loaded
Graham On 12 August 2011 08:59, Graham Dumpleton <[email protected]> wrote: > Hi Paul. Thanks for bringing the discussion over here. We haven't done > this exercise for a while and probably a good thing to recap and also > include latest ideas. Maybe this time I will collect all the details > together and make a document of it somewhere. > > So we can fill out the full picture, can you post the snippets from > nginx to set it up as proxy to Apache/mod_wsgi, plus the Apache > configuration snippets for mod_wsgi in Apache as well. Also indicate > the MPM Apache is built for and current settings in Apache for > Timeout, KeepAlive, MaxKeepAliveRequests and KeepAliveTimeout, as we > as for the MPM used what you have for: > > # prefork MPM > # StartServers: number of server processes to start > # MinSpareServers: minimum number of server processes which are kept spare > # MaxSpareServers: maximum number of server processes which are kept spare > # MaxClients: maximum number of server processes allowed to start > # MaxRequestsPerChild: maximum number of requests a server process serves > <IfModule mpm_prefork_module> > StartServers 1 > MinSpareServers 1 > MaxSpareServers 10 > MaxClients 150 > MaxRequestsPerChild 0 > </IfModule> > > # worker MPM > # StartServers: initial number of server processes to start > # MaxClients: maximum number of simultaneous client connections > # MinSpareThreads: minimum number of worker threads which are kept spare > # MaxSpareThreads: maximum number of worker threads which are kept spare > # ThreadsPerChild: constant number of worker threads in each server process > # MaxRequestsPerChild: maximum number of requests a server process serves > <IfModule mpm_worker_module> > StartServers 2 > MaxClients 150 > MinSpareThreads 25 > MaxSpareThreads 75 > ThreadsPerChild 25 > MaxRequestsPerChild 0 > </IfModule> > > That will give us a good starting point. > > Graham > > On 11 August 2011 22:46, Paul Walsh <[email protected]> wrote: >> I asked this on Stack Overflow >> (http://stackoverflow.com/questions/7022614/running-django-on-apache-behind-nginx-what-apache-optimizations-can-i-make), >> and it was suggested I ask here. So, here goes: >> >> I have a configured and running setup that I am looking to optimize. I do >> not want to swap out Apache for gunicorn or other options at this stage. >> >> My setup is so: >> >> Ubuntu 11.04 Default nginx from apt-get Default apache from apt-get >> >> Nginx serves static files, and passes application requests through to >> Apache. Apache will have between 5-8 Django projects (ie - distinct >> websites). Small to medium traffic. Apache only has django projects (served >> via mod_wsgi) - I don't need php or anything that Django does not need. >> >> From the default Ubuntu/Apache, what mods can I disable, and are there any >> other configuration tweaks I can do to more optimally use resources on my >> machine. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/modwsgi/-/-TEVSnX2XKAJ. >> 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. >> > -- 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.
