gzip - unexplained side effects

dbanks nginx-forum at nginx.us
Fri Nov 18 16:50:53 UTC 2011

I spent more time testing this particular issue.  I believe that what
appeared to be lost traffic is simply due to the shortened keepalives
and the load balancer favoring keepalive connections over new
connections.  However, there still seems to be a link between gzip
settings and the number of open connections (keepalives). 

gzip on;
gzip_comp_level 1;
gzip_types text/javascript text/plain application/x-javascript;
gzip_disable "MSIE [1-6]\.(?!.*SV1)"
#gzip_buffers 64 4k;
#gzip_min_length 1100; #if it fits in one packet, no worries
#gzip_http_version 1.1;

I have confirmed that if any one of the three config lines at the bottom
(the ones that are commented out) are present, the number of open
connections drops from ~7600 to ~1300.  Removing that line from the
config and reloading restores normal operation.  Strange.



Posted at Nginx Forum: http://forum.nginx.org/read.php?2,218044,218575#msg-218575

More information about the nginx mailing list