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.
Many thanks,
-John R.
|