]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: counters: make EXTRA_COUNTERS_GET() consider tgid
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Feb 2026 08:58:08 +0000 (09:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 16:03:53 +0000 (17:03 +0100)
commitb604064980ff4bd80cb829dfcc50eb26b975edec
treed68d0349183d58244e671f20cf803c9d3db2cda7
parent9019a5db933625f4d3da5158765640cbaa441f9e
MEDIUM: counters: make EXTRA_COUNTERS_GET() consider tgid

Now we store and retrieve only counters for the current tgid when more
than one is supported. This allows to significantly reduce contention
on shared stats. The haterm utility saw its performance increase from
4.9 to 5.8M req/s in H1, and 6.0 to 7.6M for H2, both with 5 groups of
16 threads, showing that we don't necessarily need insane amounts of
groups.
include/haproxy/counters.h