response time in varnishncsa

Caunter, Stefan scaunter at topscms.com
Fri Oct 8 18:59:34 CEST 2010


Hit/miss is a vcl addition to vcl_deliver:

sub vcl_deliver {

C{
      VRT_SetHdr(sp, HDR_RESP, "\014X-Cache-Svr:", myhostname,
vrt_magic_string_end);
}C
      /* mark hit/miss on the request */
      if (obj.hits > 0) {
        set resp.http.X-Cache = "HIT";
        set resp.http.X-Cache-Hits = obj.hits;
      } else {
        set resp.http.X-Cache = "MISS";
      }
}


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


-----Original Message-----
From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Angelo Höngens
Sent: October-08-10 7:35 AM
To: 'Varnish-misc'
Subject: RE: response time in varnishncsa

Havent seen anything on the list about this. I would also really like to see the time-taken field in the varnishnca log. And what I would want even more, is a field indicating hit/miss! I might even convince my boss to pay for the hours taken.

-- 

 
With kind regards,
 
 
Angelo Höngens
 
Systems Administrator
 
------------------------------------------
NetMatch
tourism internet software solutions
 
Ringbaan Oost 2b
5013 CA Tilburg
T: +31 (0)13 5811088
F: +31 (0)13 5821239
 
mailto:A.Hongens at netmatch.nl
http://www.netmatch.nl
------------------------------------------


> -----Original Message-----
> From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-
> bounces at varnish-cache.org] On Behalf Of Håvard Futsæter
> Sent: vrijdag 8 oktober 2010 13:26
> To: Varnish-misc
> Subject: Re: response time in varnishncsa
> 
> Bump. Anyone who knows something about this?
> 
> ----- Original Message -----
> > Hi! Are there any plans for introducing response time in the
> > varnishncsa log format? I mean response time as in '%D' from the
> > apache2 log format.
> >
> > I am using varnish 2.0.4, so I suppose this might have been
> introduced
> > in later versions, although I haven't seen this from the changelogs.
> >
> > --
> > ------
> > Regards,
> > Håvard
> >
> > _______________________________________________
> > varnish-misc mailing list
> > varnish-misc at varnish-cache.org
> > http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
> 
> --
> ------
> 
> Regards,
> Håvard
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc


More information about the varnish-misc mailing list