Pound is infront of HAProxy for SSL off-load so HAProxy receives plaint text HTTP requests. I have HAProxy (v1.4.8) infront of two web-app servers hosting the same application. Below is my HAProxy config.
Currently, a client hits HAProxy, and can go to any server for their initial "GET /" request for the root of the site. For example, a client hits ServerA, from that point on they may always get served by ServerA or ServerB, which ever, the session will be sticky to either A or B. Also the reverse happens; a clients initial request may come into ServerB, after this initial request they will always be served by ServerB or ServerA. The session sticks, but sometimes there is this change after the initial request, to the opposing server for all future requests.
Below is my HAProxy config. Have I written this up incorrectly?
listen app-servers 127.0.0.1:80
cookie ASP.NET_SessionId prefix
balance url_param ASP.NET_SessionId
balance roundrobin
option persist
option redispatch
# Balance based on ASP .NET sesssion ID
appsession ASP.NET_SessionId len 64 timeout 30m request-learn prefix
# Active WebApp servers
server appserver1 10.0.0.1:80
server appserver2 10.0.0.2:80
Thank you.