On Wed, Apr 03, 2013 at 06:20:44PM +0200, Baptiste wrote: > I confirm that as long as the number of server and each server's weight is > the same, two HAProxy instances would have the same result for a source > hash. > > So, in case of HAProxy instance failover, the affinity remains.
And if you have many servers and absolutely want to get the highest possible affinity, you can use the consistent hash which has the benefit of only redistributing a small part of the traffic when a server goes up or down. The downside is that it's not as well balanced as the table-based hash. Regards, Willy

