]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: counters: Dynamically allocate per-thread group counters
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 12 Jan 2026 03:25:34 +0000 (04:25 +0100)
committerOlivier Houchard <ohouchard@haproxy.com>
Tue, 13 Jan 2026 10:12:34 +0000 (11:12 +0100)
commit5495c884418e301d746f66eab015c1c4ad3d4cc7
treeb3718292a686120e0b2c88764dc9505cfaedcbc2
parent37057feb80bf6ab5c3a120a023a3ad6eeaa5ffec
MEDIUM: counters: Dynamically allocate per-thread group counters

Instead of statically allocating the per-thread group counters,
based on the max number of thread groups available, allocate
them dynamically, based on the number of thread groups actually
used. That way we can increase the maximum number of thread
groups without using an unreasonable amount of memory.
18 files changed:
include/haproxy/backend.h
include/haproxy/counters-t.h
include/haproxy/proxy.h
include/haproxy/server.h
src/backend.c
src/cache.c
src/check.c
src/cli.c
src/counters.c
src/http_client.c
src/listener.c
src/proxy.c
src/server.c
src/server_state.c
src/session.c
src/stats-file.c
src/stats-proxy.c
src/stream.c