Re: [squid-users] filtering out cache.log messages in Squid 3.2

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Jan 2012 23:10:06 +1300

On 4/01/2012 10:32 p.m., alex sharaz wrote:
> Hi,
> I'm running a number of 3.2 caches behind a hardware load balancer
> that performs health checks every 30 seconds by doing a "head http://<
> non resolvable FQDN>/fred.txt" and expecting a 503 status code to be
> returned from the server. If it gets this, real traffic is passed to
> the cache based upon the distribution algorithm used.
>
> The problem is of course that cache.log now has
>
> 2012/01/04 09:17:34 kid1| Failed to select source for
> 'http://dummyhost12345.hull.ac.uk/fred.txt'
> 2012/01/04 09:17:34 kid1| always_direct = 0
> 2012/01/04 09:17:34 kid1| never_direct = 0
> 2012/01/04 09:17:34 kid1| timedout = 0
>
> messages every 5 seconds. Is there a way of filtering these out?
> Of course I could just change the URL to be something real e.g
> http://bbc.co.uk/ and do it that way,

That is the correct way to do it. Testing that both the proxy is
available and allowing traffic through.

Or you can set the fake URL to be at port 7. The response status should
then be 403 as it bounces off Safe_ports.

Amos
Received on Wed Jan 04 2012 - 10:10:19 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 04 2012 - 12:00:04 MST