r/haproxy • u/RocketSeven • Sep 21 '26
Question How do you prove an HAProxy reload has fully drained the old process?
A successful configuration check and reload show that the new process started, but long-lived HTTP streams, WebSockets, or slow clients can keep the old process alive with the previous configuration. A load balancer in front of several HAProxy nodes can also hide one instance that failed to adopt the new generation.
What evidence do you collect after a reload? I am considering recording the configuration hash and process start time, querying the runtime API or stats socket on each node, counting sessions owned by the old process, and using synthetic requests that reach every instance directly. The rollout would have a drain deadline and would fail rather than treating an indefinitely retained old process as success.
Which runtime fields or process metadata reliably distinguish generations? How do master-worker mode, seamless reloads, peers, stick tables, and long tunnels affect the check, and what escalation is safe when the old generation does not drain?