]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: filters: add per-filter call counters
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Oct 2024 14:57:03 +0000 (16:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Oct 2024 18:13:00 +0000 (20:13 +0200)
commit19e4ec43b91113fc89e1695665e9afa7a4dd4bbd
tree0f73180a0102aec83a70dd7632e73f153bef4bba
parent37d5c6fe3a2c7c526f5a3c647c359c3e40d7feb7
MINOR: filters: add per-filter call counters

The idea here is to record how many times a filter is being called on a
stream. We're incrementing the same counter all along, regardless of the
type of event, since the purpose is essentially to detect one that might
be misbehaving. The number of calls is reported in "show sess all" next
to the filter name. It may also help detect suboptimal processing. For
example compressing 1GB shows 138k calls to the compression filter, which
is roughly two calls per buffer. Maybe we wake up with incomplete buffers
and compress less. That's left for a future analysis.
include/haproxy/filters-t.h
src/filters.c
src/stream.c