Ignoring health checks in statistics

Caunter, Stefan scaunter at topscms.com
Tue Mar 23 13:01:22 CET 2010


I put the answer to satisfy the load balancer in the error section. Instead of serving the static file, put the text as part of the 404 message and remove the file altogether. 

Stef
--------------------------
Sent using BlackBerry
416 561 4871

----- Original Message -----
From: varnish-dev-bounces at varnish-cache.org <varnish-dev-bounces at varnish-cache.org>
To: varnish-dev at varnish-cache.org <varnish-dev at varnish-cache.org>
Sent: Tue Mar 23 07:02:56 2010
Subject: Ignoring health checks in statistics

Hi,

we have two Varnish instances and a load balancer in front.  The load
balancer periodically polls the varnishd's for a static file (lying also
at all the backend servers) to check if varnishd is still working.  It
does that once per second.  This completely messes up statistics like
hit ratio because that static file is served from cache all the time, so
currently our hit ratio is close to 99.9%.  I would like to have counted
this specific file neither as miss nor hit, but just serve it and ignore
it otherwise.  It doesn't even need to be logged.

haproxy has an option monitor-net where you can specify that it does not
need to log requests from that subnet.  Does varnish offer a similar
option?  Or is there some cool VCL snippet I could add?

Thanks in advance.

Kind regards,
-- 
Navteq (DE) GmbH
Frank Gruellich
Map24 Systems and Networks

Duesseldorfer Strasse 40a
65760 Eschborn
Germany

Phone:      +49 6196 77756-414
Fax:        +49 6196 77756-100

HRB 46215, Local Court Frankfurt am Main
Managing Directors: Thomas Golob, Hans Pieter Gieszen, Martin Robert Stockman
USt-ID-No.: DE 197947163



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20100323/f1fe01bb/attachment-0003.html>


More information about the varnish-dev mailing list