Skip to content

Commit

Permalink
[fix] [broker] disable loadBalancerMemoryResourceWeight by default (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
thetumbled committed Jun 5, 2024
1 parent 8276f21 commit 342d88d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ strictBookieAffinityEnabled=false
# The heap memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
# Deprecated: Memory is no longer used as a load balancing item
loadBalancerMemoryResourceWeight=1.0
loadBalancerMemoryResourceWeight=0

# Zookeeper quorum connection string
# Deprecated: use metadataStoreUrl instead
Expand Down
2 changes: 1 addition & 1 deletion conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ loadBalancerCPUResourceWeight=1.0

# The heap memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
loadBalancerMemoryResourceWeight=1.0
loadBalancerMemoryResourceWeight=0

# The direct memory usage weight when calculating new resource usage.
# It only takes effect in the ThresholdShedder strategy.
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform-ansible/templates/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ loadBalancerCPUResourceWeight=1.0

# The heap memory usage weight when calculating new resource usage.
# It only take effect in ThresholdShedder strategy.
loadBalancerMemoryResourceWeight=1.0
loadBalancerMemoryResourceWeight=0

# The direct memory usage weight when calculating new resource usage.
# It only take effect in ThresholdShedder strategy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,7 @@ The max allowed delay for delayed delivery (in milliseconds). If the broker rece
doc = "Memory Resource Usage Weight. Deprecated: Memory is no longer used as a load balancing item.",
deprecated = true
)
private double loadBalancerMemoryResourceWeight = 1.0;
private double loadBalancerMemoryResourceWeight = 0;

@FieldContext(
dynamic = true,
Expand Down

0 comments on commit 342d88d

Please sign in to comment.