This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 5f9fa22c642 [improvement](backend balance) improve capacity cofficient
of be load score (#26874) (#31134)
5f9fa22c642 is described below
commit 5f9fa22c642c8a3fd9d49a7324b8d44831c1f092
Author: yujun <[email protected]>
AuthorDate: Tue Feb 20 12:23:10 2024 +0800
[improvement](backend balance) improve capacity cofficient of be load score
(#26874) (#31134)
---
.../src/main/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 c23bcd76329..9ac6fce7f2b 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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]