LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: configuring LVS multiple realservers in director with localnode in S

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: configuring LVS multiple realservers in director with localnode in SMP machine
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Sat, 2 Jun 2007 14:40:21 -0700 (PDT)
On Sat, 2 Jun 2007, Alexander Osorio wrote:

> Hello,
>
> I'm make a service that bind in a given ip and port, now, i'm working
> with SMP computer, so, i need one service by processor, and i need
> load balancing between the process, i'm trying with LVS, but don't
> work (the director and the services need to be in the same computer).

are you trying to balance processes between two processors 
in a 2-way SMP realserver using LVS?

Joe

>
> The services can be in any ip-port, so i try with fwmark and LVS:
>
> My PC have a bond device with ip 192.168.1.5
>
> 1) configure iptables
>
> iptables -t mangle -F
> iptables -t mangle -A PREROUTING -p tcp -s 0.0.0.0/0 -d
> 192.168.1.105/255.255.255.255 --dport 5000 -j MARK --set-mark 1
>
> 2) configure the listen VIP for mark:
>
> ifconfig bond0:1 192.168.1.105 netmask 255.255.255.255 broadcast
> 192.168.1.105 up
> route add -host 192.168.1.105 dev bond0:1
>
> 3) configure the VIP for service
>
> ifconfig bond0:2 192.168.1.205 netmask 255.255.255.255 broadcast
> 192.168.1.205 up
> route add -host 192.168.1.205 dev bond0:2
>
> Ok, now, run the service in 192.168.1.205:5000 (the service is a echo service)
>
> from another machine, telnet 192.168.1.105 and no response.
>
> reading about localnode, the packet is forwarding by lvs from
> 192.168.1.105 to 192.168.1.205, but the dest_addr is 192.168.1.105, so
> my service can't make a connection...
>
> please, how i can make a connection?
>
> Alex Osorio.
>
> _______________________________________________
> 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
>

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


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