LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

ActiveConn problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: ActiveConn problem
From: "Micah Abrams" <micah@xxxxxxxxxxxxxxx>
Date: Wed, 3 Dec 2003 18:30:30 -0700
I have a very simple LVS setup using two Load balancers, two real servers
and keepalived for the failover/monitoring.  The LVS topology is using
Direct Routing.  The real servers are running a web server called Resin to
serve up .jsp pages.  The problem is that ipvsadm is reporting hundreds
(sometimes thousands) of connections when in reality each server is only
recieving 10-15 simultaneous connections (20-30 accross the cluster).
Keepalived is constantantly adding/removing the servers from the cluster and
my mailbox is fillin up with notices.  Below is the contents of my
keepalived.conf as well as the output from ipvsadm -L.  Please feel free to
email me off the list should you need any other details.  Any help would be
greatly appreciated.

ipvsadm output:
[root@lb1 root]# ipvsadm
IP Virtual Server version 1.0.10 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.38.9.59:http rr
  -> 10.38.9.113:http             Route   1      231        366
  -> 10.38.9.112:http             Route   1      1036       183

keepalived.conf:

virtual_server 10.38.9.59 80 {
    delay_loop 30
    lb_algo rr
    lb_kind DR
    protocol TCP


    real_server 10.38.9.112 80 {

        weight 1
        TCP_CHECK {
                connect_timeout 2
        connect_port 80
        }

   }

    real_server 10.38.9.113 80 {

        weight 1
        TCP_CHECK {
                connect_timeout 2
        connect_port 80
        }
    }

}

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