Skip to content

Commit

Permalink
fix(auto_balancer): fix load balancer threshold
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh committed Aug 15, 2024
1 parent 604533c commit fa2bf9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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 fa2bf9e

Please sign in to comment.