LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Easing a real server into rotation

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Easing a real server into rotation
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 5 Feb 2004 10:01:28 +0900
On Wed, Feb 04, 2004 at 01:07:11PM -0500, John Reuning wrote:
> What's the best method of easing a new server into an LVS cluster?  For
> example, I have a cluster of web servers.  Each server has several
> hundred active connections, and the new server starts at zero.  lc load
> balancing pounds the new server to death within about an hour, but rr
> never gives the new server enough requests to bring it to the level of
> the others.
> 
> Is there a hybrid lc/rr balancing algorithm?  Here are a couple of
> specific properties:
> 
> - Operate with lc balancing, but only give a single real server a
> certain number of new connections at a time.  After that threshold is
> reached, rotate through the other real servers once or twice, then give
> the RS with a low count a few more connections, etc.
> 
> - Operate on rr load balancing while the real servers' active connection
> counts are within a certain range (10, 20, etc.).  Add a few checks to
> keep it from flipping back and forth between lc & rr.
> 
> Or is the only workaround to set up dynamically adjusted weighting?  If
> so, suggestions would be welcome.  I'm currently using keepalived.

That is probably a good option. Perhaps a better option would
be to implement some sort of slow-start scheduler for LVS.
It seems that it would be pretty straight forward.

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