Commit 8e45c702 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a stats counter for backend connections which we came too late

to recycle



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4177 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d90f9ad3
......@@ -256,11 +256,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, 0, 'a', "Cache hits")
MAC_STAT(cache_hitpass, uint64_t, 0, 'a', "Cache hits for pass")
MAC_STAT(cache_miss, uint64_t, 0, 'a', "Cache misses")
MAC_STAT(backend_conn, uint64_t, 0, 'a', "Backend connections success")
MAC_STAT(backend_unhealthy, uint64_t, 0, 'a',
"Backend connections not attempted")
MAC_STAT(backend_busy, uint64_t, 0, 'a', "Backend connections too many")
MAC_STAT(backend_fail, uint64_t, 0, 'a', "Backend connections failures")
MAC_STAT(backend_reuse, uint64_t, 0, 'a', "Backend connections reuses")
MAC_STAT(backend_recycle, uint64_t, 0, 'a', "Backend connections recycles")
MAC_STAT(backend_unused, uint64_t, 0, 'a', "Backend connections unused")
MAC_STAT(backend_conn, uint64_t, 0, 'a', "Backend conn. success")
MAC_STAT(backend_unhealthy, uint64_t, 0, 'a', "Backend conn. not attempted")
MAC_STAT(backend_busy, uint64_t, 0, 'a', "Backend conn. too many")
MAC_STAT(backend_fail, uint64_t, 0, 'a', "Backend conn. failures")
MAC_STAT(backend_reuse, uint64_t, 0, 'a', "Backend conn. reuses")
MAC_STAT(backend_toolate, uint64_t, 0, 'a', "Backend conn. was closed")
MAC_STAT(backend_recycle, uint64_t, 0, 'a', "Backend conn. recycles")
MAC_STAT(backend_unused, uint64_t, 0, 'a', "Backend conn. unused")
MAC_STAT(n_sess_mem, uint64_t, 0, 'i', "N struct sess_mem")
MAC_STAT(n_sess, uint64_t, 0, 'i', "N struct sess")
......
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