]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: counters: add shared counters base infrastructure
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 8 Apr 2025 16:16:38 +0000 (18:16 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 5 Jun 2025 07:58:58 +0000 (09:58 +0200)
commita0dcab5c4573437e890ca060b9a211338c3cf1c2
treea469ae66a23f56a9cfcce5ec7bbed6bc6c97909e
parent89b04f2191392dc6b72121e5cc649cb0a64fa3cf
MAJOR: counters: add shared counters base infrastructure

Shareable counters are not tagged as shared counters and are dynamically
allocated in separate memory area as a prerequisite for being stored
in shared memory area. For now, GUID and threads groups are not taken into
account, this is only a first step.

also we ensure all counters are now manipulated using atomic operations,
namely, "last_change" counter is now read from and written to using atomic
ops.

Despite the numerous changes caused by the counters being moved away from
counters struct, no change of behavior should be expected.
29 files changed:
include/haproxy/backend.h
include/haproxy/counters-t.h
include/haproxy/proxy.h
include/haproxy/server.h
include/haproxy/stats-t.h
include/haproxy/stream.h
src/backend.c
src/cache.c
src/cfgparse.c
src/check.c
src/fcgi-app.c
src/flt_http_comp.c
src/frontend.c
src/haproxy.c
src/hlua.c
src/http_act.c
src/http_ana.c
src/listener.c
src/log.c
src/mux_h1.c
src/proxy.c
src/queue.c
src/server.c
src/server_state.c
src/stats-file.c
src/stats-proxy.c
src/stream.c
src/tcp_act.c
src/tcp_rules.c