Hi,
I had the same problem that you have. Failover works perfectly, but failback
to the master caused all connections to drop. I fixed it by first making
sure both daemons (master & backup) run before heartbeat is started. Second,
that still caused some clients to disconnect, so i added a 'sleep' of about
30s before heartbeat starts. That fixed it for me.
Oh, and i don't know if this matters any, but on the primary LVS i started
the daemons with syncid 20 (master) and 21 (backup). On the secondary LVS,
20 (backup) and 21 (master).
Léon
> I am sorry, I did not explain very well. My language is not very
> technical :-) I did what you suggested before. From master to backup
> the failover worked fine. I did not lose any connections. From backup,
> when the master (after a reboot) snatched back the nodes, the
> connections dropped. I am sure that when the master came backup, it
> started the daemon, as I had "--start-daemon master" in the
> /etc/ipvsadm.rules. I confirmed this by doing "ipvsadm --start-daemon
> master" on the master and it said "Daemon has already run". I could not
> query if it is in "master" status. I presumed so.
>
> I there a way for the master and backup swap dynamically when snatching
> the nodes?
--
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
|