Demogorgon314 commented on code in PR #16281: URL: https://github.com/apache/pulsar/pull/16281#discussion_r915386190
########## conf/broker.conf: ########## @@ -1171,12 +1171,22 @@ defaultNamespaceBundleSplitAlgorithm=range_equally_divide # load shedding strategy, support OverloadShedder and ThresholdShedder, default is ThresholdShedder since 2.10.0 loadBalancerLoadSheddingStrategy=org.apache.pulsar.broker.loadbalance.impl.ThresholdShedder +# load balance placement strategy, support LeastLongTermMessageRate and LeastResourceUsageWithWeight +loadBalancerLoadPlacementStrategy=org.apache.pulsar.broker.loadbalance.impl.LeastLongTermMessageRate + # The broker resource usage threshold. # When the broker resource usage is greater than the pulsar cluster average resource usage, # the threshold shedder will be triggered to offload bundles from the broker. # It only takes effect in the ThresholdShedder strategy. loadBalancerBrokerThresholdShedderPercentage=10 +# The broker average resource usage difference threshold. +# Average resource usage difference threshold to determine a broker whether to be a best candidate in LeastResourceUsageWithWeight. +# (eg: broker1 with 10% resource usage with weight and broker2 with 30% and broker3 with 80% will have 40% average resource usage. +# The placement strategy can select broker1 and broker2 as best candidates.) +# It only takes effect in the LeastResourceUsageWithWeight strategy. +loadBalancerAverageResourceUsageDifferenceThresholdShedderPercentage=10 Review Comment: I guess the config should be `loadBalancerAverageResourceUsageDifferenceThresholdPercentage `? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
