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
|