Author: jim
URL: http://svn.apache.org/viewcvs?view=rev&rev=122551 Log: simplify the BalancerMember load factor weighting. Instead of being percentages (and adjusting when the number don't add up), loadfactors/lbfactors are now normalized values, so values like:
Hi Jim, Why did you remove the algorithm comment from the source code? The algorithm still behaves as before, only the setup is normalized.
- * lbstatus -50 0 25 25 - * lbstatus -25 0 -25 50 - * lbstatus 0 0 0 0 - * (repeat) - * - * That is it schedules: a c d a c d a c d ... - * - * The following asymmetric configuration works as one would expect: - * - * worker a b - * lbfactor 70 30 - * - * lbstatus -30 30 - * lbstatus 40 -40 - * lbstatus 10 -10 - * lbstatus -20 20 - * lbstatus -50 50 - * lbstatus 20 -20 - * lbstatus -10 10 - * lbstatus -40 40 - * lbstatus 30 -30 - * lbasatus 0 0 - * (repeat) - * - * That is after 10 schedules, the schedule repeats and 7 a are selected - * with 3 b interspersed. -*/
Mladen.
