LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Balancing to multiple local ports

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] Balancing to multiple local ports
From: "Tim Bourne" <tbourne@xxxxxxxxxxx>
Date: Thu, 5 Mar 2009 13:09:54 -0600
Howdy all,

I'm trying to get ldirectord set up to balance to multiple local ports
on the director box.  E.g., 172.16.1.153:180(the host running
ldirectord) balances to 172.16.1.153:2500-2502.  Here's the
configuration:

# Global Directives
checktimeout=3
checkinterval=10
quiescent=no
logfile="/var/log/ldirectord.log"
autoreload=yes

virtual=172.16.1.153:180
        real=172.16.1.153:2500 masq
        real=172.16.1.153:2501 masq
        real=172.16.1.153:2502 masq
        scheduler=wlc
        service=none
        persistent=30
        checktype=connect
        protocol=tcp


When I run a tcpdump to watch incoming traffic, 172.16.1.153 sends back
a RST packet for any incoming requests.  Ipvsadm seems to think
everything is hunky dory.

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.16.1.153:180 wlc persistent 30
  -> 172.16.1.153:2502            Local   1      0          0
  -> 172.16.1.153:2501            Local   1      0          0
  -> 172.16.1.153:2500            Local   1      0          0


I have set up IP forwarding and all the /etc/modules ip_vs_*.ko and
such.  I've tried changing the real servers to 127.0.0.1, but that
didn't make a difference.  I'm afraid I'm missing something simple here,
but I just can't seem to get it going.  Thanks for any ideas.

Tim Bourne
~ less is more ~

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