I'm having a problem with HAProxy. We have a load-balancer running haproxy with SSL offloading, which forwards traffic to our several app servers, running Windows Server 2008 and IIS 7.5. The problem I'm having is that when I deployed the latest version of one of our apps, HAProxy ceased to forward traffic to any of the app servers for that subdomain. Instead, we saw instantaneous HTTP 503 errors.
I've confirmed from IIS logs that no traffic reaches the server. I've attempted to read through the haproxy logs, but I'm woefully unfamiliar with the app and most of the log entries seemed to address various flavors of memory allocation calls.
EDIT
It seems that I'd posted the question without finishing the text. The sentence previously ending in "flavoe" has been corrected.
I would start with something simple like: Is IIS running on the same port after the deploy as before? Hard to forward if the port has changed.
As was perfectly expected, the problem was with the application code. An error caused a certain page to return an HTTP 500 error. Unfortunately, that was the URL that haproxy used to monitor uptime. As soon as the new code was deployed, haproxy was informed that the site was unavailable.
The answer was to correct the application code, obviously. What's not obvious is how to determine that this is what was happening - I ended up resorting to
tcpdump
to diagnose traffic, as haproxy logs were less than informative.