I've got a web app that's split into two components. A WCF service hosted on port 4444 and a regular set of web services hosted on port 80 via IIS.
I've got my nodes set up in haproxy, but I now need to extend my configuration to ensure that my health checking for port 80 removes a node if port 4444 is down. This is because the code running on port 80 expects the service on to be there on localhost:4444 and will fail if 4444 is offline. If I configure haproxys health checks to check port 4444 for the port 80 group. It removes the port 80 node when the service on 4444 is not listening. But does not remove it if I stop IIS. Is there anyway to configure haproxy to check both ports and remove the server if one OR the other is failing?
Here is my config.
listen WEB80 10.1.1.100:80 mode http balance roundrobin #round robin it yo option httpclose option forwardfor server Web1 10.1.1.13:80 check port 4444 server Web1 10.1.1.14:80 check port 4444 listen AP4444 10.1.1.100:4444 mode http balance roundrobin #round robin it yo option httpclose option forwardfor server App1 10.1.1.13:4444 check server App2 10.1.1.14:4444 check