Hi,
I have persistence and sync configured in lvs.cf ("persistent = 480"
and "syncdaemon = 1").
LVS manages persistence creating a NONE connection in the connection
table. But the "expire" value in the connection table is not
synchronized between active and backup router. In the backup router
it's always set to 3 minutes:
--------------
[root@lvs1 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
TCP 07:51 NONE 192.168.26.11:0 192.168.26.10:80
10.11.12.2:80 <<<===
TCP 01:51 TIME_WAIT 192.168.26.11:37744 192.168.26.10:80 10.11.12.2:80
[root@lvs2 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
TCP 02:48 NONE 192.168.26.11:0 192.168.26.10:80
10.11.12.2:80 <<<===
TCP 01:48 TIME_WAIT 192.168.26.11:37744 192.168.26.10:80 10.11.12.2:80
--------------
After 3 minutes, the backup connection expired but the one in the
active router is still there:
--------------
[root@lvs1 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
TCP 04:39 NONE 192.168.26.11:0 192.168.26.10:80
10.11.12.2:80 <<<===
[root@lvs2 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
--------------
If there is a failover in this moment (active router is poweroff), the
backup router will not have information about persistent connections.
And the Client will access to another Real Server instead of using the
same Real Server he was using before the failover.
It seems that this value is hard coded in ip_vs_sync.c (please correct
me if I'm wrong):
-----------
cp->timeout = (3*60*HZ);
-----------
The question is: Why NONE connections are not being synchronized?
Thanks in advance for your help,
Florencia
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|