Hi guys,
Aiming to solve the issue where Haproxy would only resolve the DNS during the startup instead of “on the run”, I created a new Google Cloud VM running HaProxy 2.2.9.
I did set the resolve block:
resolvers pc-dns
nameserver pcdns "Google Internal DNS Resolver IP"
resolve_retries 30
timeout retry 1s
hold valid 5s
Then add at the of each backend server:
....... check port 80 inter 1s fall 1 rise 3 resolvers pc-dns
I have tried both:
resolvers pc-dns
nameserver dns1 "Google Internal DNS Resolver IP":53
hold valid 5s
and
resolvers pc-dns
parse-resolv-conf
hold valid 10s
But I ended up with the same result. After 40s or so, the backend servers are set to MAINT.
But the servers are up and running
I appreciate any suggestion.
1 post - 1 participant