We expose the ability to configure balancers per-process via flags. 'heap',
'choice', and 'aperture' are valid choices for defaultBalancer. However, using
this is generally not a good idea, as Finagle processes usually contain many clients.
To configure the load balancer method on a client, use the configured method like so:
{{
val balancer = Balancers.aperture(...)
Protocol.configured(LoadBalancerFactory.Param(balancer))
}}
We expose the ability to configure balancers per-process via flags. 'heap', 'choice', and 'aperture' are valid choices for defaultBalancer. However, using this is generally not a good idea, as Finagle processes usually contain many clients. To configure the load balancer method on a client, use the
configuredmethod like so:{{ val balancer = Balancers.aperture(...) Protocol.configured(LoadBalancerFactory.Param(balancer)) }}