[lvs-users] Balancing to multiple local ports

Tim Bourne tbourne at bsecure.com
Thu Mar 5 19:09:54 GMT 2009


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 ~




More information about the lvs-users mailing list