LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS ignoring weights and schedulers

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: LVS ignoring weights and schedulers
From: Joe Stump <joe@xxxxxxxxxxxx>
Date: Fri, 19 May 2006 10:30:22 -0700
Anybody see anything wrong with this?

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.10.51:mysql wrr persistent 1
  -> 192.168.11.41:mysql          Masq    1      7          886
  -> 192.168.11.40:mysql          Masq    1000   1          444

How can a server with a weight of 1000 have 1 connection while the one with a weight of 1 has 7? I've tried wlc and rr with no luck. Heck, I even put the weight of .41 at 0 and it STILL got more connections than .40. What the heck? Below is my keepalived.conf for the server:

virtual_server 192.168.10.51 3306 {
    delay_loop 3
    lb_algo wrr
    lb_kind NAT
    nat_mask 255.255.255.0
    persistence_timeout 1
    protocol TCP
    sorry_server 192.168.11.20 3306

    real_server 192.168.11.40 3306 {
        weight 1000

        TCP_CHECK {
            connect_timeout 15
        }
    }

    real_server 192.168.11.41 3306 {
        weight 1

        TCP_CHECK {
            connect_timeout 15
        }
    }
}


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