We are trying DNS recovery with TCP in HAPROXY 2.4.1, everything works supremely well other than an edge case.
Our cluster of HAPROXY config is written with API and reloads very often, for example 2000+ times a day.
HAPROXY queries the local DNS service configured within same server, when the DNS service fails, HAPROXY preserves the last valid responses it received until the next successful resolution (with help of
hold valid and
Now the problem is, when DNS service fails and HAPROXY reloads at the same time, servers configured on every backend goes out and this could cause a very big outage if happens in production.
Is there any option to preserve discovered backends across reloads and DNS failures? I tried
init-addr last, but didn’t work.
Thanks for the great community support as always !