Commit 20ebe76b authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r4177: Add a stats counter for backend connections which we came too late to recycle



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4302 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 70b83a56
......@@ -314,11 +314,11 @@ VBE_GetVbe(struct sess *sp, struct backend *bp)
if (VBE_CheckFd(vc->fd)) {
/* XXX locking of stats */
VSL_stats->backend_reuse += 1;
VSL_stats->backend_conn++;
WSP(sp, SLT_Backend, "%d %s %s",
vc->fd, sp->director->vcl_name, bp->vcl_name);
return (vc);
}
VSL_stats->backend_toolate++;
sp->vbe = vc;
VBE_ClosedFd(sp);
}
......
......@@ -37,14 +37,14 @@ MAC_STAT(cache_hit, uint64_t, 'a', "Cache hits")
MAC_STAT(cache_hitpass, uint64_t, 'a', "Cache hits for pass")
MAC_STAT(cache_miss, uint64_t, 'a', "Cache misses")
MAC_STAT(backend_conn, uint64_t, 'a', "Backend connections success")
MAC_STAT(backend_unhealthy, uint64_t, 'a',
"Backend connections not attempted")
MAC_STAT(backend_busy, uint64_t, 'a', "Backend connections too many")
MAC_STAT(backend_fail, uint64_t, 'a', "Backend connections failures")
MAC_STAT(backend_reuse, uint64_t, 'a', "Backend connections reuses")
MAC_STAT(backend_recycle, uint64_t, 'a', "Backend connections recycles")
MAC_STAT(backend_unused, uint64_t, 'a', "Backend connections unused")
MAC_STAT(backend_conn, uint64_t, 'a', "Backend conn. success")
MAC_STAT(backend_unhealthy, uint64_t, 'a', "Backend conn. not attempted")
MAC_STAT(backend_busy, uint64_t, 'a', "Backend conn. too many")
MAC_STAT(backend_fail, uint64_t, 'a', "Backend conn. failures")
MAC_STAT(backend_reuse, uint64_t, 'a', "Backend conn. reuses")
MAC_STAT(backend_toolate, uint64_t, 'a', "Backend conn. was closed")
MAC_STAT(backend_recycle, uint64_t, 'a', "Backend conn. recycles")
MAC_STAT(backend_unused, uint64_t, 'a', "Backend conn. unused")
MAC_STAT(n_srcaddr, uint64_t, 'i', "N struct srcaddr")
MAC_STAT(n_srcaddr_act, uint64_t, 'i', "N active struct srcaddr")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment