hitrate at 1.00 but backend still getting traffic
Rob Ayres
quasirob at googlemail.com
Wed Oct 14 14:06:18 CEST 2009
Hi,
Doing some testing and have got the hitrate average to 1.00. Cache misses
are reported as 0.00 but we are still seeing reqests in the backends apache
logs. The Total Pass line (see the varnishstat output below) seems to show
about the right number of requests to account for this. But if there is
still traffic going to the backend I dont understand why the hitrate is 1.00
The vcl file is very simple,
backend default {
.host = "barbican-z3";
.port = "80";
}
sub vcl_fetch {
if (obj.cacheable) {
set obj.ttl = 24h;
}
}
Also, is there a document detailing what each line of varnishstat means?
Thanks,
Rob
Hitrate ratio: 10 100 1000
Hitrate avg: 1.0000 1.0000 0.9898
3404 0.00 0.69 Client connections accepted
474002 290.17 95.51 Client requests received
346436 271.16 69.80 Cache hits
55518 0.00 11.19 Cache misses
126781 19.01 25.55 Backend connections success
757 0.00 0.15 Backend connections failures
126778 20.01 25.54 Backend connections recycles
1 . . N struct srcaddr
1 . . N active struct srcaddr
27 . . N struct sess_mem
14 . . N struct sess
54903 . . N struct object
54906 . . N struct objecthead
114219 . . N struct smf
4215 . . N small free smf
1 . . N large free smf
3 . . N struct vbe_conn
10 . . N struct bereq
14 . . N worker threads
14 0.00 0.00 N worker threads created
0 0.00 0.00 N queued work requests
563 0.00 0.11 N overflowed work requests
1 . . N backends
194279 . . N LRU moved objects
481532 303.18 97.02 Objects sent with write
3404 0.00 0.69 Total Sessions
474019 291.18 95.51 Total Requests
72023 20.01 14.51 Total pass
126778 20.01 25.54 Total fetch
101827536 63514.30 20517.34 Total header bytes
5814577615 5316785.81 1171585.25 Total body bytes
1246 0.00 0.25 Session Closed
473212 292.18 95.35 Session herd
17724459 9138.51 3571.32 SHM records
1092786 605.37 220.19 SHM writes
4361 1.00 0.88 SHM MTX contention
5 0.00 0.00 SHM cycles through buffer
256109 40.02 51.60 allocator requests
110004 . . outstanding allocations
803733504 . . bytes allocated
7786201088 . . bytes free
764 0.00 0.15 SMS allocator requests
355236 . . SMS bytes allocated
355236 . . SMS bytes freed
126786 19.01 25.55 Backend requests made
1 0.00 0.00 N vcl total
1 0.00 0.00 N vcl available
1 . . N total active purges
1 0.00 0.00 N new purges added
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20091014/fa1ad206/attachment-0001.html>
More information about the varnish-misc
mailing list