Varnishncsa missing requests

François Fanuel ffanuel.metanext at spsbetting.com
Fri Sep 24 16:37:56 CEST 2010


Hi,

Yes, it's an http check.
We also have a nagios http check with the same behavior : sometimes the request is logged by varnishncsa, sometimes not.
We also catch the health check in vcl_error :
sub vcl_error {
        # Serve HealthCheck
        if (obj.status == 699) {
                set obj.status = 200;
                set obj.http.Content-Type = "text/html; charset=utf-8";
                synthetic "PASS";
                return(deliver);
        }
}

Here is an example of a valid request logging in varnishncsa:
10.33.1.201 - - [24/Sep/2010:16:36:45 +0200] "GET /rp_hc/ HTTP/1.1" 200 4 "-" "-"

Thanks for your help,

Regards,

François FANUEL

From: Caunter, Stefan [mailto:scaunter at topscms.com]
Sent: vendredi 24 septembre 2010 16:33
To: François Fanuel; varnish-misc at varnish-cache.org
Subject: RE: Varnishncsa missing requests

Is the BIGIP health check an http check? We stopped using that in favour of a simple tcp check to port 80.

I've looked in my old varnishlog output, we were catching the F5 http health check in vcl_error.

Can you send some log examples?

Stefan Caunter :: Senior Systems Administrator :: TOPS
e: scaunter at topscms.com  ::  m: (416) 561-4871
www.thestar.com www.topscms.com

From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of François Fanuel
Sent: September-24-10 4:54 AM
To: varnish-misc at varnish-cache.org
Subject: Varnishncsa missing requests

Hi,

We've got a strange behavior with varnishncsa : some requests that we can see in varnishlog are missing in the varnishncsa logs.

We can clearly see that with Healthchecks from our BIGIP (We've got 4x Varnish behind 2x BIGIP).
The BIGIPs are doing 1 request every 5 seconds that we can see in varnishlog. In the varnishncsa logs, we can't see every healthcheck request.
Sometime, we have no log at all for 3 or 4 minutes and then the logs reappears. We've done tests with or withour load, and the behavior is the same.

Any idea ?

Thanks for your help !

Regards,

François FANUEL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100924/f833b8fe/attachment-0003.html>


More information about the varnish-misc mailing list