Large keepalive_requests values are severely slowing-down Nginx
Posted
by
Gil
on Server Fault
See other posts from Server Fault
or by Gil
Published on 2013-10-23T13:08:01Z
Indexed on
2014/05/30
9:30 UTC
Read the original article
Hit count: 277
When running a bacon (43-byte transparent pixel) load test on Nginx, we have tried several keepalive_requests
values (from 10 to 100,000) and the optimal value seems to be 10
.
Here are the server HTTP headers of this tiny reply:
HTTP/1.1 200 OK
Server: nginx/1.5.6
Date: Wed, 23 Oct 2013 12:39:45 GMT
Content-Type: image/gif
Content-Length: 43
Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT
Connection: keep-alive
Nginx is twice slower with keepalive_requests 100000
than with keepalive_requests 10
.
Can you help understanding that result? Or tell what we do wrong?
For reference, here is the nginx.conf file.
© Server Fault or respective owner