LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] local load balancing (director = realserver)?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] local load balancing (director = realserver)?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Wed, 19 May 2010 08:11:25 +0200
Am 19.05.2010 03:03, Simon Horman wrote:

>> Now, I would like to connect from any of the to machines to either
>> realserver_1 or realserver_2 ("round robin"):
>>
>> realserver_1$ telnet address 25
>> 220 realserver_1 ESMTP ...
>>
>> realserver_1$ telnet address 25
>> 220 realserver_2 ESMTP ...
>>
>>
>> realserver_2$ telnet address 25
>> 220 realserver_1 ESMTP ...
>>
>> realserver_2$ telnet address 25
>> 220 realserver_2 ESMTP ...
>>
>>
>> Can I do it with LVS?
>
> Yes, typically this can be done using LVS-DR.
> Be careful about the way you manage the VIP - it will likely
> need to be on lo on the director and ethX on the other machine.
> And also be careful to handle the arp problem.
>
> http://www.ultramonkey.org/3/topologies/sl-ha-lb-eg.html

I tried to set this up with LVS-DR, but then:

$ telnet address 25

always connects to the localhost (i.e., lo:0, as the address is local). 
Which may not be that surprising?

Unless there's something I missed and it should just work?


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