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: "Alexander Osorio" <maosorionet@xxxxxxxxx>
Date: Sat, 2 Jun 2007 17:25:56 -0500
No, the idea is make connections load balancing, for example:


                           clients
                               |
                               |
        VIP 192.168.1.105 dev bond0:1 set mark 1
          |                                                      |
          |                                                      |
VIP 192.168.1.205 dev bond0:2                VIP 192.168.1.305 dev bond0:3
realserver binded(192.168.1.205:5000)      realserver binded(192.168.1.305:5000)


The LVS and the realservers are in the same machine, the idea is to
make use of the processors (2 in the example) to have one process
listen in each processor... the process for test is only a echo
process, so, with 100 clients ans using -s rr, the idea is 50 clients
connects to 192.168.1.205:5000 and 50 clients connects to
192.168.1.305:5000... or can be in the same VIP in differents
sockets...

Sorry, may be my english is not very good...

Thanks, Alex.



2007/6/2, Joseph Mack NA3T <jmack@xxxxxxxx>:
> 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!
>
> _______________________________________________
> 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>