algo.LeastWorkLoadBalancer
Description
Load-balancer that evens out workload among targets.
Constructor
new algo.LeastWorkLoadBalancer(targets, unhealthy?)
Creates an instance of LeastWorkLoadBalancer.
Methods
next(borrower?, tag?, unhealthy?)
Allocates an resource item for the next selected target.
set(target, weight)
Sets weight of a target.