I’m aware of the Apache directives MaxClients and ListenBacklog. I’m trying to set a limit of, let’s say 100 concurrent connections after which the new connections will be served a static page.
Can this be done? Should MaxClients and ListenBacklog be higher or lower than that limit? How can I test it?
I’m aware of the Apache directives MaxClients and ListenBacklog . I’m trying to set
Share
Here’s how I did it:
Let’s say that I want to allow X concurrent requests, after which the following Y concurrent requests will stay in a queue, waiting for the first X to finish, and everything exceeding X+Y will be served a static page:
In
httpd.confthe following directives must be set:Logged as root in MySQL, set
max_connections:Edit the
.htaccessfile from your server’s public root folder:Make sure that your error_503.html is served in one request. All stylesheets and scripts must be in this file. If you want to include images, you’ll have to use the data uri scheme. Also, you’ll have to slice your images up because in IE data URIs have to be smaller than 32KiB.