Skip to content

Commit

Permalink
fix(auto_balancer): fix load balancer threshold (#1805)
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh authored Aug 15, 2024
1 parent f070e4e commit fd03fb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected boolean requireMoreLoad(BrokerUpdater.Broker broker) {
@Override
public boolean isBrokerAcceptable(BrokerUpdater.Broker broker) {
double load = broker.loadValue(resource());
if (usageAvg < this.usageDetectThreshold) {
if (load < this.usageDetectThreshold && usageAvg < this.usageDetectThreshold) {
return true;
}
return load >= usageDistLowerBound && load <= usageDistUpperBound;
Expand Down

0 comments on commit fd03fb4

Please sign in to comment.