Commit 34725484 authored by Dag Haavi Finstad's avatar Dag Haavi Finstad

Add ws_backend_overflow counter

parent ff31e8af
......@@ -594,6 +594,13 @@
Number of times we failed a response due to running out of
workspace memory during delivery.
.. varnish_vsc:: ws_backend_overflow
:level: diag
:group: wrk
:oneliner: workspace_backend overflows
Number of times we ran out of space in workspace_backend.
.. varnish_vsc:: shm_records
:level: diag
:oneliner: SHM records
......
......@@ -167,6 +167,9 @@ VBO_ReleaseBusyObj(struct worker *wrk, struct busyobj **pbo)
AZ(bo->htc);
if (WS_Overflowed(bo->ws))
wrk->stats->ws_backend_overflow++;
if (bo->fetch_objcore != NULL) {
AN(wrk);
(void)HSH_DerefObjCore(wrk, &bo->fetch_objcore,
......
......@@ -27,3 +27,4 @@ client c1 {
} -run
logexpect l1 -wait
varnish v1 -expect ws_backend_overflow == 1
......@@ -40,3 +40,4 @@ client c1 {
} -run
logexpect l1 -wait
varnish v1 -expect ws_backend_overflow == 1
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