com.twitter.finagle.loadbalancer
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory with a finagle Address ordering.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory with a finagle Address ordering. The collection of endpoints in a load balancer are sorted by this ordering. Although it's generally not a good idea to have the same ordering across process boundaries, the final ordering decision is left to the load balancer implementations. This only provides a stable ordering before we hand off the collection of endpoints to the balancer.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory with a collection of addrs to load balance.
A class eligible for configuring a client's load balancer probation setting.
A class eligible for configuring a client's load balancer probation setting. When enabled, the balancer treats removals as advisory and flags them. If a a flagged endpoint is also detected as unhealthy by Finagle's session qualifiers (e.g. fail-fast, failure accrual, etc) then the host is removed from the collection.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory with a label for use in error messages.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory per host com.twitter.finagle.stats.StatsReceiver.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory per host com.twitter.finagle.stats.StatsReceiver. If the per-host StatsReceiver is not null, the load balancer will broadcast stats to it (scoped with the "host:port" pair) for each host in the destination. For clients with a large host sets in their destination, this can cause unmanageable memory pressure.
A class eligible for configuring a com.twitter.finagle.Stackable com.twitter.finagle.loadbalancer.LoadBalancerFactory.
A class eligible for configuring the way endpoints are created for a load balancer.
A class eligible for configuring the way endpoints are created for a load balancer. In particular, each endpoint that is resolved is replicated by the given parameter. This increases concurrency for each identical endpoint and allows them to be load balanced over. This is useful for pipelining or multiplexing protocols that may incur head-of-line blocking (e.g. from the server's processing threads or the network) without this replication.
A class eligible for configuring the LoadBalancerFactory behavior
when the balancer does not find a node with Status.Open
.
A class eligible for configuring the LoadBalancerFactory behavior
when the balancer does not find a node with Status.Open
.
The default is to "fail open" and pick a node at random.
Exposes a Stack.Module which composes load balancing into the respective Stack. This is mixed in by default into Finagle's com.twitter.finagle.client.StackClient. The only necessary configuration is a LoadBalancerFactory.Dest which represents a changing collection of addresses that is load balanced over.