Honestly saying I've read apache documentation, but there are too many parameters, that I don't know how to configure (KeepAlive, ServerLimit, StartServers, MaxRequestWorkers, MinSpareThreads, MaxSpareThreads, ThreadsPerChild, Timeout, MaxKeepAliveRequests, KeepAliveTimeout, StartServers, MaxRequestsPerChild
).
So, my application is the following. In peak loads it gets around 20-30 requests per second. Some requests perform heavy applications and it can take up to 10 seconds to complete them. During these requests there is pretty high load of CPU and RAM usage.
What I want to do is serve low (say 5) number of simultaneous requests and other requests should be queued. I think this should be done with high Timeout like Timeout 300
.
But what about other parameters? There are too many of them and I don't know how to tune them.
I'm using mod_wsgi.
Any help will be highly appreciated.
UPDATE
Problems with default configuration is that I can't access site during peak loads. Site just loads and loads. Sometimes I just got 504 error.