[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-virtual-server
Subject:    Re: Multiple routing types in one lvs?
From:       Joseph Mack <mack.joseph () epa ! gov>
Date:       2002-01-29 19:09:43
[Download RAW message or body]

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@epa.gov ph# 919-541-0007, RTP, NC, USA

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic