This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f4d5e6dd550 [improvement](backend balance) improve capacity cofficient
of be load score (#26874)
f4d5e6dd550 is described below
commit f4d5e6dd550ff35f67830cc3404ed92d6ebe4e4a
Author: yujun <[email protected]>
AuthorDate: Mon Nov 13 21:51:31 2023 +0800
[improvement](backend balance) improve capacity cofficient of be load score
(#26874)
---
.../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]