LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS directing all incoming connections to same server

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] LVS directing all incoming connections to same server
From: Dusan Djordjevic <dusan.djordjevic@xxxxxxxxx>
Date: Tue, 10 Feb 2009 09:45:57 +0100
Hi all,

I finally managed to make everything work :) I have following setup:

-2 lvs nodes, both of them with daemons for connection sync, 2
instances (master and slave)
-ldirectord started as separate process
-heartbeat for high availability, having 2 floating ip addresses,
public and gw for real servers
-3 servers in farm

So far, everything works OK, except one thing. It seems that LVS is
forwarding all incomming connections to same server:

root@ucplb:~# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.21.150:www wlc persistent 900 mask 255.255.255.0
  -> 192.168.20.3:www             Masq    3      40         600
  -> 192.168.20.2:www             Masq    3      0          27
  -> 192.168.20.1:www             Masq    3      0          0

I am using curl-loader for simple testing. In my case it is set up to
use 22 threads. So it starts 22 different IP addresses and sends
requests from them. I am saying this since persistence is on in my
case. Here is snip of live connections:

root@ucplb:~# ipvsadm -Lc | grep ESTABLISHED
TCP 15:00  ESTABLISHED 192.168.21.46:34488 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.46:52613 192.168.21.150:www 192.168.20.3:www
TCP 15:00  ESTABLISHED 192.168.21.39:32850 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.50:48891 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.45:55850 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.36:43368 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.46:55113 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.32:55080 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.47:50136 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.43:58085 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.40:51633 192.168.21.150:www 192.168.20.3:www
TCP 14:59  ESTABLISHED 192.168.21.30:54909 192.168.21.150:www 192.168.20.3:www
...

So they all do come from various sources, but ends up in same end
server. Why it is so, why my connections are not balanced at all ?
TIA


Best regards,
Dusan

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