I have a django site on webfaction that uses apache + mod_wsgi.
Site is getting around 1000 requests per minute.
But it makes some calculations, so request takes about 5-10 seconds.
I use the following configuration
StartServers 2
MinSpareThreads 10
MaxSpareThreads 25
ThreadLimit 25
ThreadsPerChild 25
MaxClients 75
MaxRequestsPerChild 1000
threads=15 processes=12
The problem is high CPU usage and it takes time to process a simple static page without calculations (looks like Apache queued the request).
So what I want is for Apache to quickly accept requests.
I'm totally lost because of number of parameters, I also don't quite understand what they mean. What do we need StartServers
and MaxRequestWorkers
for?
Any help and/or explanations will be highly appreciated.
I have 8GB of RAM.
Apache MPM Worker.
mod_wsgi 4.4.21.
Thank you in advance.