Skip to content

Commit

Permalink
[improve] [broker] disable balancing based on DirectMemory. (#21168)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetumbled authored Sep 14, 2023
1 parent 1ac19fc commit b10eed6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,9 @@ loadBalancerCPUResourceWeight=1.0

# The direct memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerDirectMemoryResourceWeight=1.0
# Direct memory usage cannot accurately reflect the machine's load,
# and it is not recommended to use it to score the machine's load.
loadBalancerDirectMemoryResourceWeight=0

# Bundle unload minimum throughput threshold (MB), avoiding bundle unload frequently.
# It only takes effect in the ThresholdShedder strategy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2419,9 +2419,10 @@ The delayed message index time step(in seconds) in per bucket snapshot segment,
@FieldContext(
dynamic = true,
category = CATEGORY_LOAD_BALANCER,
doc = "Direct Memory Resource Usage Weight"
doc = "Direct Memory Resource Usage Weight. Direct memory usage cannot accurately reflect the "
+ "machine's load, and it is not recommended to use it to score the machine's load."
)
private double loadBalancerDirectMemoryResourceWeight = 1.0;
private double loadBalancerDirectMemoryResourceWeight = 0;

@FieldContext(
dynamic = true,
Expand Down

0 comments on commit b10eed6

Please sign in to comment.