thetumbled commented on code in PR #22949:
URL: https://github.com/apache/pulsar/pull/22949#discussion_r1666757425


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java:
##########
@@ -270,7 +270,12 @@ public void initialize(final PulsarService pulsar) {
                             () -> 
LoadManagerShared.refreshBrokerToFailureDomainMap(pulsar, 
brokerToFailureDomainMap));
                 });
 
-        loadSheddingStrategy = createLoadSheddingStrategy();
+        if (placementStrategy instanceof LoadSheddingStrategy) {
+            // bind the load shedding strategy and the placement strategy
+            loadSheddingStrategy = (LoadSheddingStrategy) placementStrategy;
+        } else {
+            loadSheddingStrategy = createLoadSheddingStrategy();

Review Comment:
   No, that is a bad combination. There are already too many kind of 
combinations that user can choose, but only few of them can work well.
   



-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to