Commit 561579a3 authored by Nils Goroll's avatar Nils Goroll

add the long missing per-backend busy and unhealthy counters

parent e02e31ed
......@@ -78,6 +78,18 @@
:level: info
:oneliner: Backend requests sent
.. varnish_vsc:: unhealthy
:type: counter
:level: info
:oneliner: Fetches not attempted due to backend being unhealthy
.. varnish_vsc:: busy
:type: counter
:level: info
:oneliner: Fetches not attempted due to backend being busy
Number of times the max_connections limit was reached
..
=== Anything below is actually per VCP entry, but collected per
=== backend for simplicity
......
......@@ -90,7 +90,7 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo,
if (bp->director->sick) {
VSLb(bo->vsl, SLT_FetchError,
"backend %s: unhealthy", VRT_BACKEND_string(bp->director));
// XXX: per backend stats ?
bp->vsc->unhealthy++;
VSC_C_main->backend_unhealthy++;
return (NULL);
}
......@@ -98,7 +98,7 @@ vbe_dir_getfd(struct worker *wrk, struct backend *bp, struct busyobj *bo,
if (bp->max_connections > 0 && bp->n_conn >= bp->max_connections) {
VSLb(bo->vsl, SLT_FetchError,
"backend %s: busy", VRT_BACKEND_string(bp->director));
// XXX: per backend stats ?
bp->vsc->busy++;
VSC_C_main->backend_busy++;
return (NULL);
}
......
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