LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] ldirectord unbalance load distribution

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] ldirectord unbalance load distribution
From: Liu Yan <gzbigegg.ml@xxxxxxxxx>
Date: Sun, 27 Sep 2009 12:31:34 +0800
Here's the status right after I issued the "ldirectord ldirectord.cf reload"
command:
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  VIP1:http lc
  -> RIP1-2:http           Route   1      2177       1
  -> RIP1-1:http            Local   1      41         188
TCP  VIP2:http lc
  -> RIP2-2:http            Route   1      3717       0
  -> RIP2-2:http            Local   1      144        378

After 5 minutes
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  VIP1:http lc
  -> RIP1-2:http           Route   1      1364       0
  -> RIP1-1:http            Local   1      90         318
TCP  VIP2:http lc
  -> RIP2-2:http            Route   1      2250       0
  -> RIP2-2:http            Local   1      163        752

After about 15 minutes
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  VIP1:http lc
  -> RIP1-2:http           Route   1      108       1
  -> RIP1-1:http            Local   1      106         308
TCP  VIP2:http lc
  -> RIP2-2:http            Route   1      203       5
  -> RIP2-2:http            Local   1      199        485

Seems like the number is getting towards balance, but the increasing number
of InActConn makes me uncomfortable. Any ideas?

BTW, I installed heartbeat-ldirectord and heartbeat 2.1.3-3.el5 via yum on
CentOS-5.3, 64bit.

Regards,
Yan

2009/9/27 Simon Horman <horms@xxxxxxxxxxxx>

> On Sun, Sep 27, 2009 at 09:45:14AM +0800, Liu Yan wrote:
> > Simon,
> >
> > Thanks for the reply.
> >
> > What's the best way to change the config (from rr to lc) with minimal
> > impact to the service?
>
> Firstly update the ldirectord.cf file so taht all instances of
> scheduler=rr are changed to scheduler=lc.
>
> Then reload ldirectord.
>
> ldirectord ldirectord.cf reload
>
> _______________________________________________
> 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
>
_______________________________________________
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>