Jamie,
Cookies dont need state replication.
Source IP has a new replication feature, example here:
peers mypeers
peer haproxy1 192.168.0.1:1024
peer haproxy2 192.168.0.2:1024
peer haproxy3 10.2.0.1:1024
backend mybackend
mode tcp
balance roundrobin
stick-table type ip size 20k peers mypeers
stick on src
server srv1 192.168.30:80
server srv2 192.168.31:80
BTW: LVS can easily do session replication just use:
ipvsadm --start-daemon master
ipvsadm --start-daemon backup
On 15 March 2011 14:45, Jaime Nebrera <[email protected]> wrote:
>
> Hi all list members,
>
> I'm wondering if its possible to share the connection affinity / state
> between a couple of HA proxies, in such a way, in case of failure the backup
> server will redirect the user to the same end server as it was using when
> going through the main haproxy.
>
> I'm aware this can be done with LVS and with netfilter too (for connection
> tracking. not affinity relted though), but dont know if its possible with
> haproxy.
>
> Is it? how? Is this open source or commercial?
>
> Very thankful in advance.
>
> Kind regards
>
> --
> Jaime Nebrera - [email protected]
> Consultor TI - ENEO Tecnologia SL
> C/ Manufactura 2, Edificio Euro, Oficina 3N
> Mairena del Aljarafe - 41927 - Sevilla
> Telf.- 955 60 11 60 / 619 04 55 18
>
>
--
Regards,
Malcolm Turnbull.
Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/