LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Load-balancing directors using DNS round-robin

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Load-balancing directors using DNS round-robin
Cc: linux-ha-dev@xxxxxxxxxxxxxxxxxx
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 10 Sep 2004 13:03:50 +0900
On Thu, Sep 02, 2004 at 10:12:15PM +0200, Martijn Vogel wrote:
> 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?

Yes that will work fine, though effectively you are using rr-DNS
to load balance LVS. That probably won't be a problem, though how
effectively traffic is distributed between the linux directors is
a point of conjecture.

-- 
Horms

Attachment: ldirectord.ssleak.patch
Description: Text document

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