LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [PATCH] wlib scheduler (fwd)

To: Chris Caputo <ccaputo@xxxxxxx>
Subject: Re: [PATCH] wlib scheduler (fwd)
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 00:30:55 +0800 (CST)

Hi,

On Tue, 25 Jan 2005, Chris Caputo wrote:

On Wed, 26 Jan 2005, Wensong Zhang wrote:
I see that recording current pointer into svc->sched_data is probably not
necessary, because every time the scheduler will iterate servers from the
beginning to the end.

Hi.  This is done so that at startup (when there are ties) round-robin
scheduling occurs rather than sending initial connections to the same
server and creating an imbalance from the start.  I'd really prefer to
keep it in.  Please let me know if I am misunderstanding something.


You probably don't need to worry too much about imbalance at the startup, any slight imbalance among servers will direct a new connection to the least loaded server. It's impossible that all the connections are assigned to a server, and the load (traffic/weight) of all the servers are equal.

Regards,

Wensong


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