I am looking for good practices for using load balancer haproxy.
There are few DNS records to the same haproxy server, haproxy has few backends with bunch of servers.
The question is what the best practice to manage few backend clusters:
1st approach. On DNS server transfer all request to haproxy server IP port 80, and then on single common
frontendrouting traffic by using
cal. This approach might became very complicated with even few backends, because for every backend we need to set acl.
2st approach. On every single DNS record set the same haproxy server IP and different port for specific backend, then on haproxy set fronted for every IP:port interface. This approach seems like more simpler approach, but if there are any drawbacks.
What is the preferable solution for managing many backends on haproxy?