Our session service deals with persistence... Our application is written
in such a way that it does not matter the backend it is connected to
(i.e. we do not need HAProxy to keep the persistence). Currently,
HAProxy is set to Round-Robbin (default).
Also of note, in the lab, we are only connecting to one backend. So
there is always persistence with one server.
I will setup some more logging and see what I come up with.
Thanks
On 10/26/2011 10:50 AM, Baptiste wrote:
Hi,
how do you achieve session persistance in HAProxy configuration?
What load-balancing algorithm do you use?
Can you configure HAProxy to log your session cookie then show us some
log lines?
cheers
On Wed, Oct 26, 2011 at 2:57 PM, Sean Patronis<[email protected]> wrote:
We are in the process of converting most of our HAProxy usage to be http
balanced (instead of TCP).
In our lab we are using stunnel to decrypt our https traffic to http
which then gets piped to haproxy. We also have a load balanced session
service that stunnel/HAProxy also serves which uses uses cookies for our
sessions (the session service generates/maintains the cookies).
Whenever we are using stunnel/HAProxy to decrypt and balance our session
service, something bad seems to happen to the session cookie and our
session service returns an error. If we use just straight http
balancing without stunnel in the loop, our session service works fine.
Also, if we just use HAProxy and tcp balancing, our session service
works fine (the current way our production service works).
What gives is there some special config in HAProxy or stunnel that I am
missing?
Thanks.