Re: failover without downtime?

"Ebrahimpour, Khosrow (SSC/SPC)" <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hi Stig,

> -----Original Message-----
> From: Stig Brautaset [mailto:[email protected]]
> Sent: 15 February, 2016 05:50
> To: [email protected]
> Subject: [Keepalived-devel] failover without downtime?
> 
> 
> I've inherited a live environment with a keepalived setup.
> Unfortunately the corresponding dev/test environments doesn't have
> keepalived, presumably for lack of IPs. (Noone still here _knows_, but that fits
> the symptoms.)
> 
> We would like to fail over to the BACKUP, but we don't want to take the primary
> box offline -- as we don't want to fail the connections already in progress.
> 
> Can I just kill the keepalived daemon running as MASTER?
> Will that that initiate a failover to the BACKUP without downtime for the traffic?
> I.e. new connections go to BACKUP but MASTER's old traffic is left to finish?
> 
> Stig
> 


Are you running keepalived to manage lvs? In that case you could run the connection syncing daemons that come with LVS. Have a look at the --start-daemon option in ipvsadm(8). It synchronizes the connection tables between the two instances running ipvsadm. Note that this is outside of keepalived, but it should accomplish what you're looking to do.

One caveat: the connection synchronization may not work as expected if you're running your loadbalancer in DR mode.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.