LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Load-balancing directors using DNS round-robin

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Load-balancing directors using DNS round-robin
From: "Martijn Vogel" <lvs-users@xxxxxxxxxxxxx>
Date: Thu, 2 Sep 2004 22:12:15 +0200
Hi list,

I am setting up a LVS-cluster using 2 directors and 2 real-servers and 1
fileserver (for the time being). I've read a lot of the available
documentation and went along with the LVS-NAT setup using active/stand-by
directors.

Since the task of the cluster is going to be webhosting I would like to use
2 VIPs on the directors. As most of you know, at least 2 IPs are necessary
for nameservers. I think it's a waste of resources to have one director
stand-by, but the available active/active setups are rather difficult (using
Horms method of 1 IP on 2 machines having same MAC etc.). Thinking of this I
came up with an idea I'd like to verify with all you professionals in LVS:

- set up 2 IP's as VIP, first VIP is primarily on director 1 (a heartbeat
resource), the other VIP is primarily on director 2 (also heartbeat
resource).
- set up every DNS A-record twice, once for VIP1 and once for VIP2 (looks
like DNS round-robin, does it ?)

If director 1 goes down, the VIP that is primarily a resource on this
director is moved to director 2. Likewise, if director 2 goes down, director
1 takes over its IP.

Will this setup work with LVS-modules, ipvsadm?

Thanks in advance for your responses.

Martijn

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