LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Weighted Round Robin: Maximum Weight

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Weighted Round Robin: Maximum Weight
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 17:37:14 +0900
On Mon, Nov 29, 2004 at 06:15:41PM +0800, Mohd Irwan b. Jamaluddin wrote:
> Good day,
> 
> I am planning to use weighted round robin (wrr) as the scheduler. There
> are 2 RealServers (A & B) but the management would like to use machine A
> as the primary server.
> 
> In normal situation, all the request from client should go to machine A.
> It seems that machine B is idle and only works when Machine A is down.
> 
> Hence, I should give the machine A more weight. May I know what is the
> maximum number to set the weight? Is it possible to put 1000 as the
> weight?

Sorry, to answer your actual question, yes 1000 is a valid weight.
The weights are integers, but sometimes they are assigned to an
atomic_t, so they can only be 24bits. That is,
values so 0 to (2^24-1) should work.

-- 
Horms

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