]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: counters: Review conditions to increment counters from analysers
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Dec 2019 15:13:44 +0000 (16:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:45 +0000 (15:18 +0100)
commitcff0f739e515f0f692c92722e2fbcdba11b52eae
tree7e39bc3ebdf1b3ef59fe92eb61563caeeb0ff0ff
parenta08546bb5a95ae6f8dd3a6e1b0469ca2b68a34ed
MINOR: counters: Review conditions to increment counters from analysers

Now, for these counters, the following rules are followed to know if it must be
incremented or not:

  * if it exists for a frontend, the counter is incremented
  * if stats must be collected for the session's listener, if the counter exists
    for this listener, it is incremented
  * if the backend is already assigned, if the counter exists for this backend,
    it is incremented
  * if a server is attached to the stream, if the counter exists for this
    server, it is incremented

It is not hardcoded rules. Some counters are still handled in a different
way. But many counters are incremented this way now.
src/fcgi-app.c
src/http_ana.c
src/stream.c
src/tcp_rules.c