algo.LoadBalancer.allocate()
Description
Selects a target and allocates a resource from its pool.
Syntax
balancer.allocate()balancer.allocate(tag)balancer.allocate(tag, exclusive)
Parameters
allocate(tag?, exclusive?)
tag?exclusive?
An optional value as the identifier for sticky sessions.
An optional Cache object providing a set of keys for targets that should not be selected.
Return Value
A LoadBalancerResource object with its target property pointing to the selected target. It also contains a free() method that you can call to return the resource back to the pool.