RpcLoadBalancer.LoadBalancer.SelectionAlgorithm.LeastConnections
(rpc_load_balancer v0.2.1)
Copy Markdown
View Source
Least connections node selection algorithm.
Tracks active connection counts per node using ETS counters and always
selects the node with the fewest active connections. When a call completes,
release_node/2 must be called to decrement the counter. The convenience
API in RpcLoadBalancer.LoadBalancer.call/5 handles this automatically.