]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: maintain per-state counters of listeners
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2020 05:27:06 +0000 (07:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commitefc0eec4c1c1a6f21efc4c0ead23761700c8acb6
treee2dd1b4e7dbad88be1ca314acf9143be2d68e9ac
parenta37b244509f48a534bd6812298f9b7fff48833dc
MINOR: proxy: maintain per-state counters of listeners

The proxy state tries to be synthetic but that doesn't work well with
many listeners, especially for transition phases or after a failed
pause/resume.

In order to address this, we'll instead rely on counters of listeners in
a given state for the 3 major states (ready, paused, listen) and a total
counter. We'll now be able to determine a proxy's state by comparing these
counters only.
include/haproxy/proxy-t.h
src/listener.c