[lvs-users] Localhost (local vip) time out

Brent Clark brentgclarklist at gmail.com
Wed May 16 12:32:54 BST 2012


On 15/05/2012 12:53, Graeme Fowler wrote:
> On Tue, 2012-05-15 at 09:01 +0200, Brent Clark wrote:
>> I did as you suggest. I.e. look for "realservers as clients".
>> If I understood correctly, esp the 'gotchas' page. You are not supposed to make calls / connections to yourself.
>> E.g. I cant or not supposed to run wget to a virtual host, thats DNS points to a VIP?
>
> The problem with connecting to a VIP (ignoring for a moment the loopback
> case) is that the three-way TCP handshake can go wrong.
>
> The simplest way to make a realserver connect to a VIP (as configured in
> DNS) is to put the VIP on the realserver, so it always talks to itself.
> In LVS-DR, which I think you're using, this should already be the case
> anyway or the realservers won't reply to requests for the VIP.
>
> Graeme

I think I hear what your saying.

I am using / doing LVS-DR. The VIP is on the real server.

Should I not edit my /etc/ha.d/haresouces and

hostcutout.org
       ldirectord::ldirectord.cf         \
       IPaddr2::xyz.221.22.9/27/eth0/xyz.221.22.31 \
       IPaddr2::xyz.221.22.10/27/eth0/xyz.221.22.31 \
       IPaddr2::xyz.221.22.23/27/eth0/xyz.221.22.31

where /27 make 32?

Thanks
Brent









More information about the lvs-users mailing list