LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Multiple routing types in one lvs?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Multiple routing types in one lvs?
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Tue, 29 Jan 2002 14:09:43 -0500
Michael Cunningham wrote:
> 
> Hiya,
> 
> I was wondering if the following was possible with lvs
> and how I could go about implementing it..
> 
> Current network:
> 
> RS1    RS2     RS3   RS4
> |            |           |         |
> -----------------------
>     |        |       |
> D1-----D2    |  RS5      RS6
>         |            |     |            |
> --------------     ----------
>             |                     |
>             ---------------
> 

This was the diagram I got. 

> I would like to use DR to route traffic to
> RS1-4 and TUN to route traffic to RS5-6

you set the forwarding type separately for each RS.
setup 1-4 with DR and 5-6 with Tun.

> Normally I would like the LVS to only send traffic to
> RS1-4 (via a RR or WRR schedule). If all of those
> servers (RS1-4) are not functional then the LVS
> should send traffic RS5-6.
> 
> Is this possible? How could I accomplish this?

I'm using mon. Other people seem to be using ldirectord.
In mon you have commands like

if service on machine x is down, then remove machine x from ipvsadm table
and add machine y to ipvsadm table.

If machine x comes back on line, you can remove machine y.
 
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>