algo.LoadBalancer
Description
Provides load balancing and resource pooling functionalities.
Constructor
new algo.LoadBalancer(targets, options?)
Creates an instance of LoadBalancer.
Methods
allocate(tag?, exclusive?)
Selects a target and allocates a resource from its pool.
provision(targets)
Updates all targets.
schedule(size)
Fills up an array with targets that would be selected in turn by consecutive allocations.