You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/04 04:02:02 UTC

[GitHub] [pulsar] heesung-sn commented on a diff in pull request #16937: [fix][load-balancer] skip mis-configured resource usage(>100%) in load balancer

heesung-sn commented on code in PR #16937:
URL: https://github.com/apache/pulsar/pull/16937#discussion_r937326195


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ThresholdShedder.java:
##########
@@ -86,14 +109,13 @@ public Multimap<String, String> findBundlesForUnloading(final LoadData loadData,
             double minimumThroughputToOffload = brokerCurrentThroughput * percentOfTrafficToOffload;
 
             if (minimumThroughputToOffload < minThroughputThreshold) {
-                if (log.isDebugEnabled()) {
-                    log.debug("[{}] broker is planning to shed throughput {} MByte/s less than "
+                if (sampleLog) {

Review Comment:
   I intentionally sample the logs as this shedding logic computes the load frequently every x min(I think the default is every one minute).



-- 
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-unsubscribe@pulsar.apache.org

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