From 6897d5da654f9fa8fe8f29a2975ff3771de1f6e3 Mon Sep 17 00:00:00 2001 From: srikailash Date: Tue, 13 Feb 2018 14:00:39 +0100 Subject: [PATCH] Adds ability to configure ZoneAwareLoadBalancing settings as config options (#480) This adds ability to configure settings for zone aware load balancing settings as config options. solves envoyproxy/envoy#1344 Changes : Added min_cluster_size and enabled_percentage to commonLbConfig which enables them to used directly in load_balancer_impl.cc. Signed-off-by: sri kailash --- envoy/api/v2/cds.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/envoy/api/v2/cds.proto b/envoy/api/v2/cds.proto index ddaf2d0d..59e38f75 100644 --- a/envoy/api/v2/cds.proto +++ b/envoy/api/v2/cds.proto @@ -365,6 +365,21 @@ message Cluster { // .. note:: // The specified percent will be truncated to the nearest 1%. core.Percent healthy_panic_threshold = 1; + 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 `. + // * :ref:`Zone aware routing support `. + core.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. + // * :ref:`runtime values `. + // * :ref:`Zone aware routing support `. + google.protobuf.UInt64Value min_cluster_size = 2; + } } // Common configuration for all load balancer implementations.