I am running 2 haproxy servers that keep state of each other with keepalived to be fault tolerant. These haproxies have many frontends and backends, in order to avoid port exhaustion when forwarding to backends I added the "source" param so it will perform the health check and forwarding to backend with the noted IP address:
server neo0010 10.70.0.100:8443 check check-ssl verify none source 10.200.22.105:1025-65000
Here 10.200.22.105 is one of the dynamic IPs that got assigned to the primary server in keepalived. These check do work, and traffic gets forwarded using that IP address. However, the issue that I have is that the backup keepalived haproxy sees the backend hosts in down state since it doesn't have the IP address locally assigned and it cannot perform the health check to the backends. Is there any way of performing the health checks from one IP and forwarding request via another one? Did anyone have a similar issue and manage to solve it in a different way?
Thank you! Marcelo