haproxy_frontend_current_session or haproxy_server_current_session should show the number of active sessions. Previously, the counters were not being reset and would increase indefinitely. The value of these counters are no longer preserved across router restarts and will now accurately depict the number of active sesssions.
Created attachment 1685927[details]
ocp 4.4
Description of problem:
From Prometheus, we can see haproxy exporter.
haproxy_frontend_current_session or haproxy_server_current_session should show active sessions but it does not show like that. It seems that the number of sessions keeps increasing. From my test environment, there is no load that's why I can see session decresement after load testing. However, for customer production cluster, it goes to 15 million with ocp 3.11 and 8k with ocp 4.4
With 4.4, there is not much data because the customer just upgraded and ingress pod restarted and lost the data. However, when I see the graph, it seems to have the same issues with ocp 3.x
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Open Prometheus UI
2. query "haproxy_frontend_current_seesions"
3. The value should be under 20000 * ingress nodes
Actual results:
The value keeps increasing
Expected results:
The value should show only active sessions so the session counts would be around 15k per router.
Additional info:
The PR was merged and made available in "4.5.0-0.nightly-2020-05-11-084820". It is verified that in this version the Prometheus UI now shows the correct metric data for "haproxy_frontend_current_session".
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:2409
Created attachment 1685927 [details] ocp 4.4 Description of problem: From Prometheus, we can see haproxy exporter. haproxy_frontend_current_session or haproxy_server_current_session should show active sessions but it does not show like that. It seems that the number of sessions keeps increasing. From my test environment, there is no load that's why I can see session decresement after load testing. However, for customer production cluster, it goes to 15 million with ocp 3.11 and 8k with ocp 4.4 With 4.4, there is not much data because the customer just upgraded and ingress pod restarted and lost the data. However, when I see the graph, it seems to have the same issues with ocp 3.x Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Open Prometheus UI 2. query "haproxy_frontend_current_seesions" 3. The value should be under 20000 * ingress nodes Actual results: The value keeps increasing Expected results: The value should show only active sessions so the session counts would be around 15k per router. Additional info: