Hi, My answers inline.
On Sun, May 12, 2013 at 11:25 PM, Peter Saitz <peter.sa...@gmail.com> wrote: > 1. For http, I should set this to balanace roundrobin and haproxy is > attaching A or B to the cookie, if this A or B is present in cookie for any > following incoming request, then user is directed > to the same server as his initial request, correct? (cookie is a session > cookie, so once user closes browser it is erased and next time user "gets the > server" on random again. That's it. More details about load-balancing and persistence: http://blog.exceliance.fr/2012/03/29/load-balancing-affinity-persistence-sticky-sessions-what-you-need-to-know/ > 2. What about websockets? the same, since the persistence will occur during the negotiation phase. > 3. If cookie is not accepted by client's browser, how can I ensure that all > those clients are redirected to a single server? then you have to fail over to source IP load-balancing or persistence, which is not exactly the same. More details here: http://blog.exceliance.fr/2013/04/22/client-ip-persistence-or-source-ip-hash-load-balancing/ Baptiste