I have the following setup:
and the problem is that when a petition comes in through haproxy01, then it is forwarded to Pub-agent1 and the user logs into the app, the next time we might be redirected from haproxy01 to Pub-agent2, so the user has to log in again. How would I solve this problem?
I guess one option would be stick on source, the other could be sending all traffic to one marathon-lb instance and when this one goes down, send everything to the other.
How are you handling those situations?