varnishstat not reporting correct values

James Pearson james at ifixit.com
Tue Jul 9 00:20:18 CEST 2013


Excerpts from Celene's message of 2013-07-06 12:22:15 -0700:
> Hi, I have been using varnish to accelerate some of my sites.
> 
> Interestingly enough, I added a rule in the VCL to show hits in the
> header (below)
> -------------
> if (obj.hits > 0) {
>                 set resp.http.X-Cache = "HIT";
>         } else {
>                 set resp.http.X-Cache = "MISS";
>         }
> -------------
> 
> The headers show up as a hit in my browser, with a cleared cache.
> 
> However, the stats in varnishstat never change, even if I put load on
> varnish using loadimpact.
> 
> Anyone have any idea where I should check first?

Do *none* of the stats in varnishstat change, or just the hitrate?

How about the other tools - varnishhist, varnishlog, etc.?

 - P



More information about the varnish-misc mailing list