From f4d5e6dd550ff35f67830cc3404ed92d6ebe4e4a Mon Sep 17 00:00:00 2001 From: yujun Date: Mon, 13 Nov 2023 21:51:31 +0800 Subject: [PATCH] [improvement](backend balance) improve capacity cofficient of be load score (#26874) --- .../java/org/apache/doris/clone/BackendLoadStatistic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/clone/BackendLoadStatistic.java b/fe/fe-core/src/main/java/org/apache/doris/clone/BackendLoadStatistic.java index c23bcd7632..9ac6fce7f2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/clone/BackendLoadStatistic.java +++ b/fe/fe-core/src/main/java/org/apache/doris/clone/BackendLoadStatistic.java @@ -380,12 +380,12 @@ public class BackendLoadStatistic { // the return cofficient: // 1. percent <= percentLowWatermark: cofficient = 0.5; - // 2. percentLowWatermark < percent < percentHighWatermark: cofficient linear increase from 0.5 to 1.0; - // 3. percent >= percentHighWatermark: cofficient = 1.0; + // 2. percentLowWatermark < percent < percentHighWatermark: cofficient linear increase from 0.5 to 0.99; + // 3. percent >= percentHighWatermark: cofficient = 0.99; public static double getSmoothCofficient(double percent, double percentLowWatermark, double percentHighWatermark) { final double lowCofficient = 0.5; - final double highCofficient = 1.0; + final double highCofficient = 0.99; // low watermark and high watermark equal, then return 0.75 if (Math.abs(percentHighWatermark - percentLowWatermark) < 1e-6) {