I have 2 Apache servers and a load balancer. Gzipping is enabled in the httpd files of both apache servers. When requests are sent directly to the apache server, gzipping is working fine. However, if traffic goes thru the balancer, gzipping doesn't work at all. Does anybody know what the problem might be? thank you.
Depending on the Load Balancer you may be garbling your response. Try disabling gzip on Apache then enable compression on your load balancer. This reduces load on your web servers and lets your load balancer work more effectively. The F5 BigIp LTM supports this configuration, just remember that compression of some types of content will blow up older browsers -- you'll need the same types of mime filters you might use in mod_gzip. Best, Justin
What type of load balancer are you using? I assume you have looked at the configuration options - some load balancers have compression options...others are little more than glorified switches. Also, is the traffic http or https?
Disabling gzip decreased my server load by a lot. Have you ever tried that? You might not even need a load balancer if your server processes fast enough. What kind of site are you running? Is it database intensive or just hosting files?