Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
561579a3
Commit
561579a3
authored
Jun 05, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the long missing per-backend busy and unhealthy counters
parent
e02e31ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
VSC_vbe.vsc
bin/varnishd/VSC_vbe.vsc
+12
-0
cache_backend.c
bin/varnishd/cache/cache_backend.c
+2
-2
No files found.
bin/varnishd/VSC_vbe.vsc
View file @
561579a3
...
...
@@ -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
...
...
bin/varnishd/cache/cache_backend.c
View file @
561579a3
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment