Load Balancer and Apache

Discussion in 'Apache' started by leana, May 7, 2008.

  1. #1
    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.
     
    leana, May 7, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    What load balancer are you using?

    Jay
     
    jayshah, May 7, 2008 IP
  3. hittjw

    hittjw Peon

    Messages:
    66
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    hittjw, Feb 5, 2009 IP
  4. Sameer-Hosting

    Sameer-Hosting Banned

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    LiteSpeed Do a good Load Balanceing Only Need 2 Apache Servers to Load Balance


    Try That One
     
    Sameer-Hosting, Feb 14, 2009 IP
  5. playactn

    playactn Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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?
     
    playactn, Feb 14, 2009 IP
  6. websecrets

    websecrets Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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?
     
    websecrets, Feb 17, 2009 IP