LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Fail-over for LVS director

To: "LVS Users" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Fail-over for LVS director
From: "Scott Jones" <scott@xxxxxxxxxxxxxxxxxx>
Date: Tue, 1 May 2001 09:46:31 -0700
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?

Thanks!

-Scott

P.S.  Here is my script:

#!/bin/bash
ping -c 1 lb
if [ "$?" = "0" ]
then    # the director is up
    /bin/echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
else    # the director is down, begin arping
    /bin/echo 0 > /proc/sys/net/ipv4/conf/lo/hidden
fi




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