diff --git a/conf/broker.conf b/conf/broker.conf index d68b6c6ca61de..02e294029893a 100644 --- a/conf/broker.conf +++ b/conf/broker.conf @@ -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 diff --git a/conf/standalone.conf b/conf/standalone.conf index 1a0c501899d1d..07d19c7bee929 100644 --- a/conf/standalone.conf +++ b/conf/standalone.conf @@ -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. diff --git a/deployment/terraform-ansible/templates/broker.conf b/deployment/terraform-ansible/templates/broker.conf index 43bbdc0d52d3e..084d7f46ce1ce 100644 --- a/deployment/terraform-ansible/templates/broker.conf +++ b/deployment/terraform-ansible/templates/broker.conf @@ -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. diff --git a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java index 6e8820db27ca7..204ea453bae59 100644 --- a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java +++ b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java @@ -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,