]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: use cum_sess counters instead of cum_conn
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 4 Apr 2024 16:08:46 +0000 (18:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Apr 2024 08:35:18 +0000 (10:35 +0200)
commitc02ec9a9db205fda124a40a2a87913a0528b0e5b
tree21d5a9161b63fcba55f490abdfc223fb20b6aac2
parent93066be32d11b5370c4dc7df66e78c7c609a43cf
BUG/MINOR: backend: use cum_sess counters instead of cum_conn

This commit is part of a serie to align counters usage between
frontends/listeners on one side and backends/servers on the other.

"stot" metric refers to the total number of sessions. On backend side,
it is interpreted as a number of streams. Previously, this was accounted
using <cum_sess> be_counters field for servers, but <cum_conn> instead
for backend proxies.

Adjust this by using <cum_sess> for both proxies and servers. As such,
<cum_conn> field can be removed from be_counters.

Note that several diagnostic messages which reports total frontend and
backend connections were adjusted to use <cum_sess>. However, this is an
outdated and misleading information as it does reports streams count on
backend side. These messages should be fixed in a separate commit.

This should be backported to all stable releases.
include/haproxy/counters-t.h
include/haproxy/proxy.h
include/haproxy/server.h
src/haproxy.c
src/proxy.c
src/stats.c