Skip to content

Commit

Permalink
[improve][broker] Add logs for why namespace bundle been split (#19003)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b66a21)
  • Loading branch information
codelipenghui committed Dec 21, 2022
1 parent 30f29eb commit 60a4985
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ public Set<String> findBundlesToSplit(final LoadData loadData, final PulsarServi
.getBundleCount(NamespaceName.get(namespace));
if ((bundleCount + namespaceBundleCount.getOrDefault(namespace, 0))
< maxBundleCount) {
log.info("The bundle {} is considered to be unload. Topics: {}/{}, Sessions: ({}+{})/{}, "
+ "Message Rate: {}/{} (msgs/s), Message Throughput: {}/{} (MB/s)",
bundle, stats.topics, maxBundleTopics, stats.producerCount, stats.consumerCount,
maxBundleSessions, totalMessageRate, maxBundleMsgRate,
totalMessageThroughput / LoadManagerShared.MIBI,
maxBundleBandwidth / LoadManagerShared.MIBI);
bundleCache.add(bundle);
int bundleNum = namespaceBundleCount.getOrDefault(namespace, 0);
namespaceBundleCount.put(namespace, bundleNum + 1);
Expand Down

0 comments on commit 60a4985

Please sign in to comment.