LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] 2x LVS-DR director + realserver on one machine -> packet

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] 2x LVS-DR director + realserver on one machine -> packet storm/looping
Cc: David Coulson <david@xxxxxxxxxxxxxxxx>
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Sun, 23 Oct 2011 23:34:30 +0200
On 23.10.2011 23:02, Tomasz Chmielewski wrote:

>> When I've done a two-node environment with director and real on the same
>> box, I've always ran a private interconnect between them and routed
>> traffic over that.
>
> No such luck here!

Although, something like "vconfig add eth0 105" should get me a private 
VLAN interconnect between them, or?

So:


TCP  109.200.13.253:80 lc
   -> 10.0.0.1:80                  Route   20     0          2
   -> 10.0.0.2:80                  Local   20     0          2


And indeed it works correctly, but not always.
For the host which does not have the VIP assigned, it works every second 
connection - any ideas why?

$ curl 209.15.13.253/testpage.txt
successful
dbs2

$ curl 209.15.13.253/testpage.txt
successful
dbs1

$ curl 209.15.13.253/testpage.txt
successful
dbs2

$ curl 209.15.13.253/testpage.txt
curl: (7) couldn't connect to host

$ curl 209.15.13.253/testpage.txt
successful
dbs2

$ curl 209.15.13.253/testpage.txt
successful
dbs1

$ curl 209.15.13.253/testpage.txt
successful
dbs2

$ curl 209.15.13.253/testpage.txt
curl: (7) couldn't connect to host


When it doesn't work, tcpdump on eth0 and eth0.105 shows only incoming 
client packets; no replies from the real server.


-- 
Tomasz Chmielewski
http://wpkg.org

_______________________________________________
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>