We expose the ability to configure balancers per-process via flags. However,
this is generally not a good idea as Finagle processes usually contain many clients.
This will likely go away in the future or be no-op and, therfore, should not be
depended on. Instead, configure your balancers via the configured method on
clients:
{{
val balancer = Balancers.aperture(...)
Protocol.configured(LoadBalancerFactory.Param(balancer))
}}
Annotations
@deprecated
Deprecated
(Since version 2015-06-15) Use com.twitter.finagle.loadbalancer.Balancers per-client.
We expose the ability to configure balancers per-process via flags. However, this is generally not a good idea as Finagle processes usually contain many clients. This will likely go away in the future or be no-op and, therfore, should not be depended on. Instead, configure your balancers via the
configuredmethod on clients:{{ val balancer = Balancers.aperture(...) Protocol.configured(LoadBalancerFactory.Param(balancer)) }}
(Since version 2015-06-15) Use com.twitter.finagle.loadbalancer.Balancers per-client.