I have an Apache server that is serving a django application with mod_wsgi. I'm wondering if there is a simple way to throttle requests at the apache level based on the machine's load.
Ideally I want an apache module that if the load is below a certain figure, everything works OK. However if the load is above something, then X% of IP addresses will be served the static html page for Y minutes. Does that software exist?
We are looking for a "poor man's throttling system". Something quick and easy we can drop in. Throttling based on machine load is good because it means things will eventually return to normal.
Our web application does a lot of processing, so things that limit bandwidth aren't going to pick up on this, it's not bandwidth we want to 'throttle' but, requests. Ideally we'd want some existing requests (i.e. based on IP address) to be able to continue for a certain amount of time (so they can finish doing their stuff).