From 9be704666521c542df7c735b82af52e08753b547 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Thu, 10 Mar 2022 20:48:42 +0000 Subject: [PATCH] fix: slow start config add min_weight_percent field to avoid too big edf deadline (#19712) * fix: slow start config add min_weight_percent field to avoid too big edf deadline Signed-off-by: jiangshantao Mirrored from https://github.com/envoyproxy/envoy @ e3fede5b9374bca134ec546934335ab5cdeb7aef --- envoy/config/cluster/v3/cluster.proto | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/envoy/config/cluster/v3/cluster.proto b/envoy/config/cluster/v3/cluster.proto index 89b1b5f2..8d901de5 100644 --- a/envoy/config/cluster/v3/cluster.proto +++ b/envoy/config/cluster/v3/cluster.proto @@ -363,12 +363,17 @@ message Cluster { // By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. // // During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: - // `new_weight = weight * time_factor ^ (1 / aggression)`, + // `new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))`, // where `time_factor=(time_since_start_seconds / slow_start_time_seconds)`. // // As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. // Once host exits slow start, time_factor and aggression no longer affect its weight. core.v3.RuntimeDouble aggression = 2; + + // Configures the minimum percentage of origin weight that avoids too small new weight, + // which may cause endpoints in slow start mode receive no traffic in slow start window. + // If not specified, the default is 10%. + type.v3.Percent min_weight_percent = 3; } // Specific configuration for the RoundRobin load balancing policy.