LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Connecting to a VIP from a realserver

To: Vesa-Matti J Kari <vmkari@xxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Connecting to a VIP from a realserver
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Sun, 19 Sep 2010 22:09:34 +0900
On Thu, Sep 16, 2010 at 09:18:30AM +0300, Vesa-Matti J Kari wrote:
> >From the MINI-HOW at:
> 
>   http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html
> 
> I found the following:
> 
> ##### quotation starts #####
> 
> 2.2. Gotchas: you need an outside client (the director and realservers
> can't access the virtual service)
> 
> To set up and test/run LVS, you need a minimum of 3
> machines: client, director, realserver(s).
> 
> >From the outside, the LVS functions as one machine. The client
> cannot be one of the machines in the LVS (the director, or
> realserver). You need an outside client. If you try to access an LVS
> controlled service (eg http, smtp, telnet) from any of the machines
> in the LVS; access from the director will hang, access from a
> realserver will connect to the service locally, bypassing the LVS.
> 
> ##### quotation ends #####
> 
> 
> My questions: Have I run into one of the "gotchas" here by
> trying to access MILTER VIP from the smtp-rs realservers?
> 
> If yes, does anyone know what would be the recommended method
> of connecting to MILTER VIP from smtp-rs realservers?

Yes, I believe that you have hit a known limitation which is that LVS can't
load-balance requests from a real-sever when LVS-NAT is in use.
Well, not without a work-around.

There was a recent discussion of this on this list[1]
And there is also a discussion of the problem and work-arounds
in the HOWTO[2]. As stated in that thread, my personal feeling
is that this problem can be resolved with full-nat support which
has been merged and will appear in the 2.6.35 kernel.

[1] http://archive.linuxvirtualserver.org/html/lvs-users/2010-07/msg00000.html
[2] 
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.lvs_clients_on_realservers.html#lvs_clients_on_LVS-NAT_realserver_contacting_services_on_VIP
[3] http://www.spinics.net/lists/netdev/msg135919.html

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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