Commit ce48d12d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Tada!

First step in activating backend polling:  Do not attempt to open
connections to a unhealthy backend.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3132 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f8822459
......@@ -313,6 +313,11 @@ VBE_GetVbe(struct sess *sp, struct backend *bp)
VBE_ClosedFd(sp);
}
if (!bp->healthy) {
VSL_stats->backend_unhealthy++;
return (NULL);
}
vc = VBE_NewConn();
assert(vc->fd == -1);
AZ(vc->backend);
......
......@@ -37,6 +37,7 @@ 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_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")
......
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