Disabling access logs from HW Load Balancers

Hey Guys,

Has anyone gotten this,
http://wiki.codemongers.com/HWLoadbalancerCheckErrors, working with an
LVS/Keepalived solution? Does anyone know what version this feature
became available? I’ve tried it with various 0.6.x releases and I’m
still getting the 400 errors logged.

Any tips on getting this working?

On Thu, Sep 27, 2007 at 05:47:16PM -0600, Corey D. wrote:

Hey Guys,

Has anyone gotten this,
http://wiki.codemongers.com/HWLoadbalancerCheckErrors, working with an
LVS/Keepalived solution? Does anyone know what version this feature
became available? I’ve tried it with various 0.6.x releases and I’m
still getting the 400 errors logged.

Any tips on getting this working?

Try

    location = /400 {
        if ($lb) {
            access_log  off;
  •           return 400;
          }
          return 400;
      }
    

On 9/27/07, Igor S. [email protected] wrote:

Any tips on getting this working?


Igor S.
Igor Sysoev

Still logging… I have multiple error_page definitions in my server
block, would that make a difference? nginx 0.6.6

error_page   400 /400;
error_page   500 502 503 504  /500.html;
location = /500.html {
  root /data/atmos/current/public;
}
location = /400 {
  if ($lb) {
    access_log  off;
    return 400;
  }
  return 400;
}

On Thu, Sep 27, 2007 at 11:08:41PM -0600, Corey D. wrote:

    }


Igor S.
Igor Sysoev

Still logging… I have multiple error_page definitions in my server
block, would that make a difference? nginx 0.6.6

You are right, it had been changed some time ago, I could not find
exact version right now. The reason is a client has closed connection,
so
nginx does not process error_page redirection at all.