I’m new to HAProxy so still getting used to HA Proxy. With regards to backend configs, I have a scenario where I could have 1000’s backend server configs and wondered if there was a way to dynamically set these in config using a map…
What I’m suggesting is say this:
bind 10.0.3.16:5000 accept-proxy
server int_outbound_ip %[src,map_ip(/etc/haproxy/hosts.map,default)]
This way the IP of the backend server would be dynamically chosen based on the map where I could describe internal to external IP mapping (NAT) ie.
#internal IP external IP