LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Fail-over for LVS director

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, scott@xxxxxxxxxxxxxxxxxx
Subject: Re: Fail-over for LVS director
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Tue, 01 May 2001 12:52:08 -0400
Scott Jones wrote:
> 
> Hi everyone,
> 
> I've got a basic setup with 2 real servers and a single LVS-DR director.  I
> have written a simple script that would allow one of the real servers to ARP
> for the VIP if the director was found to go down.  This would allow the site
> to seem to remain up, without the purchase of an additional machine (my load
> can be easily handled by a single real server right now, I'm just after the
> redundancy)...
> 
> My question is, would this be a very bad idea for any reason?  Would client
> computers remember the arp address and then ONLY go to that particular real
> server after I get the director back up?  How long to arp entries last?

The arp time-out is 30-90secs, so the router in front of your LVS will
have the wrong MAC address for the VIP for that time. There is a program
send-arp, which is used in the HA setup, which will send arps from your
real-server, flushing the routers arp cache for the VIP and which 
you can use as part of your failover script.

Joe

-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


<Prev in Thread] Current Thread [Next in Thread>