load balancer: plugging API config into zone aware load balancer (#3215)

Allow `upstream.zone_routing.enabled` and `upstream.zone_routing.min_cluster_size`
to be set through the configuration API.

It closes the loop on the work started with https://github.com/envoyproxy/data-plane-api/pull/480

Fixes: https://github.com/envoyproxy/envoy/issues/1344

Signed-off-by: Marcelo Juchem <juchem@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ c471310fa0ef45681fe53645b673a2f389b47fbe
pull/620/head
data-plane-api(CircleCI) 7 years ago
parent 5ea10b04a9
commit 3220d3847c
  1. 4
      envoy/api/v2/cds.proto

@ -377,15 +377,12 @@ message Cluster {
envoy.type.Percent healthy_panic_threshold = 1;
// Configuration for :ref:`zone aware routing
// <arch_overview_load_balancing_zone_aware_routing>`.
// [#not-implemented-hide:]
message ZoneAwareLbConfig {
// [#not-implemented-hide:]
// Configures percentage of requests that will be considered for zone aware routing
// if zone aware routing is configured. If not specified, the default is 100%.
// * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`.
// * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`.
envoy.type.Percent routing_enabled = 1;
// [#not-implemented-hide:]
// Configures minimum upstream cluster size required for zone aware routing
// If upstream cluster size is less than specified, zone aware routing is not performed
// even if zone aware routing is configured. If not specified, the default is 6.
@ -398,7 +395,6 @@ message Cluster {
message LocalityWeightedLbConfig {
}
oneof locality_config_specifier {
// [#not-implemented-hide:]
ZoneAwareLbConfig zone_aware_lb_config = 2;
LocalityWeightedLbConfig locality_weighted_lb_config = 3;
}

Loading…
Cancel
Save