lordcheng10 commented on code in PR #16409:
URL: https://github.com/apache/pulsar/pull/16409#discussion_r922791057


##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java:
##########
@@ -2085,6 +2085,13 @@ public class ServiceConfiguration implements 
PulsarConfiguration {
     )
     private double 
loadBalancerMsgThroughputMultiplierDifferenceShedderThreshold = 4;
 
+    @FieldContext(
+            dynamic = true,
+            category = CATEGORY_LOAD_BALANCER,
+            doc = "For each uniform balanced unload, the maximum number of 
bundles that can be unloaded."
+    )
+    private int maxUnloadBundleNumPerShedding = 2;

Review Comment:
   @Demogorgon314 I changed the default value of this configuration to -1. By 
default, there is no limit to the maximum number of bundles that can be 
adjusted each time, so it has no effect on the original logic:
   <img width="940" alt="image" 
src="https://user-images.githubusercontent.com/19296967/179389389-93a1434a-ea77-4817-94bf-bf083e486cf1.png";>
   



-- 
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]

Reply via email to