On Tue, May 18, 2010 at 03:19:19PM +0200, Tomasz Chmielewski wrote:
> Is it possible to do such balancing with LVS?
>
> /realserver_1
> director
> \realserver_2
>
>
> Everything is in LAN.
> Both "director" and "realserver_1" are the same machine.
>
>
> 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
_______________________________________________
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
|