Hello PLUG - I have a 4GB server that, when running `ab`, could only handle 50 concurrent HTTPS connections before any additional took 1.5s+ to respond. I started toying with settings, starting with prefork settings, however, didn't find a good way to handle a large number of concurrent HTTPS requests.
I ran across KeepAlive, and enabled it. I then did more `ab` testing with -k to take advantage of the change. I am now able, on the same server, to handle 1,000 concurrent HTTPS requests, 100,000 total requests, and do it all in under 50ms per request. Sometimes, when something seems too good to be true, it typically is. These are my settings: ------------------------------------------------------------------------------------------------------------ # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 0 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 2 <IfModule prefork.c> StartServers 16 MinSpareServers 50 MaxSpareServers 100 ServerLimit 1000 MaxClients 1000 MaxRequestsPerChild 0 </IfModule> ------------------------------------------------------------------------------------------------------------ Can someone shed some light on if this performance is expected, or, what I may be doing incorrectly? I'm testing from 3 servers in different data centers, using `ab -c 1000 -n 100000 -k https://www.site.com/folder/` -- Take care, William Attwood Idea Extraordinaire [email protected] Marie von Ebner-Eschenbach<http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html> - "Even a stopped clock is right twice a day." /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
