Author |
|
oziworld
Joined: 06 Aug 2006 Posts: 7
|
Posted: Mon 29 Jan '07 22:03 Post subject: Limit the number of requests on Apache 2.2 |
|
|
We would like to limit the number of requests we get per minute to our webserver.
Using Apache how can this be done. For example we have some clients running scripts against our webserver and too many requests are happening at once from them and therefore killing our webserver.
How can we limit the total number of requests per minute and discard the rest?
We have looked up the following and not sure if it helps or how to use it in the context of the above?
Example we probably only want to allow say 6 requests per minute to our webserver and the rest should be discarded or put in a queue.
Please help.
# ThreadsPerChild
# MaxRequestsPerChild
#MaxClients |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
oziworld
Joined: 06 Aug 2006 Posts: 7
|
Posted: Mon 29 Jan '07 23:39 Post subject: |
|
|
To confirm are you saying all we need to do is add
MaxKeepAliveRequests to the value 6 and is the keepalive automatically on? or do we need to explicitly set it to on? |
|
Back to top |
|
oziworld
Joined: 06 Aug 2006 Posts: 7
|
Posted: Wed 07 Feb '07 4:08 Post subject: |
|
|
Can anyone help? |
|
Back to top |
|
VoodooMill
Joined: 11 Jan 2007 Posts: 60
|
Posted: Thu 08 Feb '07 20:47 Post subject: |
|
|
oziworld,
On Windows you can set ThreadsPerChild to 6 and that will allow no more than 6 simultaneous connections to your server. It's not a limit to 6 per minute like you were asking, but it will keep the connections limited to a max of 6 at any given time. |
|
Back to top |
|