Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

varnishstat not reporting correct values

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


celene at sandydproductions

Jul 6, 2013, 12:22 PM

Post #1 of 2 (73 views)
Permalink
varnishstat not reporting correct values

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?

Thanks,

Celene

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


james at ifixit

Jul 8, 2013, 3:20 PM

Post #2 of 2 (56 views)
Permalink
Re: varnishstat not reporting correct values [In reply to]

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

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.