From: Jim Jagielski bybusyness
load balancing method.
Enabled via lbmethod=bybusyness
, this scheduler keeps
- track of how many requests each worker is assigned at present. A new
+ track of how many requests each worker is currently assigned at present. A new
request is automatically assigned to the worker with the lowest
number of active requests. This is useful in the case of workers
that queue incoming requests independently of Apache, to ensure that
queue length stays even and a request is always given to the worker
- most likely to service it fastest.
In the case of multiple least-busy workers, the statistics (and
weightings) used by the Request Counting method are used to break the
tie. Over time, the distribution of work will come to resemble that
- characteristic of byrequests
.
byrequests
(as implemented
+ by bytraffic
load balancing method..
this worker to handle. This is also a normalized value
representing their "share" of the amount of work to be done,
but instead of simply counting the number of requests, we take
- into account the amount of traffic this worker has seen.
+ into account the amount of traffic this worker has either seen
+ or produced.
If a balancer is configured as follows:
@@ -70,6 +71,8 @@ provides thebytraffic
load balancing method..
size of the request and response are applied to the weighting
and selection algorithm.
+ Note: input and output bytes are weighted the same.
+