Skip to content

[improve][broker] Add logs for why namespace bundle been split - #19003

Merged
merlimat merged 1 commit into
apache:masterfrom
codelipenghui:penghui/logs-why-bundle-split
Dec 20, 2022
Merged

merlimat merged 1 commit into
apache:masterfrom
codelipenghui:penghui/logs-why-bundle-split

Conversation

@codelipenghui

@codelipenghui codelipenghui commented Dec 20, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

Add logs for why the namespace bundle been split.
With the details logs. Users can tune the load manager options to improve the bundle split.

18:28:07.197 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x50000000_0x60000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 49976.285872448774/30000 (msgs/s), Message Throughput: 0.5233347144619912/100 (MB/s)
18:28:07.218 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xd0000000_0xe0000000 is considered to be unload. Topics: 9/1000, Sessions: (8+3)/1000, Message Rate: 39837.6273878898/30000 (msgs/s), Message Throughput: 0.41714825665545885/100 (MB/s)
18:28:16.290 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xb0000000_0xc0000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 49572.71491202636/30000 (msgs/s), Message Throughput: 0.5195150078973758/100 (MB/s)
18:28:16.332 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xa0000000_0xb0000000 is considered to be unload. Topics: 8/1000, Sessions: (8+0)/1000, Message Rate: 39809.21623701227/30000 (msgs/s), Message Throughput: 0.4172123698464636/100 (MB/s)
18:28:16.393 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:28:21.406 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:28:59.112 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:29:06.666 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xb8000000_0xc0000000 is considered to be unload. Topics: 7/1000, Sessions: (7+0)/1000, Message Rate: 39170.64232204444/30000 (msgs/s), Message Throughput: 0.4131560949721377/100 (MB/s)
18:29:06.676 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x50000000_0x58000000 is considered to be unload. Topics: 6/1000, Sessions: (6+0)/1000, Message Rate: 33308.84162853347/30000 (msgs/s), Message Throughput: 0.35130126128578953/100 (MB/s)
18:29:06.685 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xf0000000_0xffffffff is considered to be unload. Topics: 6/1000, Sessions: (6+0)/1000, Message Rate: 31255.591676699634/30000 (msgs/s), Message Throughput: 0.329708951203032/100 (MB/s)
18:29:06.690 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:29:12.510 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xc0000000_0xd0000000 is considered to be unload. Topics: 11/1000, Sessions: (74+0)/1000, Message Rate: 30204.324830724177/30000 (msgs/s), Message Throughput: 2.059469199580096/100 (MB/s)
18:29:12.510 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:29:14.040 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x30000000 is considered to be unload. Topics: 10/1000, Sessions: (10+0)/1000, Message Rate: 50415.7972425106/30000 (msgs/s), Message Throughput: 0.5283939562704797/100 (MB/s)
18:29:15.494 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x80000000_0x90000000 is considered to be unload. Topics: 6/1000, Sessions: (6+0)/1000, Message Rate: 32364.419750693123/30000 (msgs/s), Message Throughput: 0.3413933785702919/100 (MB/s)
18:29:15.518 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0x20000000_0x28000000 is considered to be unload. Topics: 6/1000, Sessions: (6+0)/1000, Message Rate: 33342.31966631791/30000 (msgs/s), Message Throughput: 0.3516866646614494/100 (MB/s)
18:30:08.348 [pulsar-modular-load-manager-31-1] INFO  org.apache.pulsar.broker.loadbalance.BundleSplitStrategy - The bundle public/default/0xc8000000_0xd0000000 is considered to be unload. Topics: 7/1000, Sessions: (7+0)/1000, Message Rate: 35024.66246401582/30000 (msgs/s), Message Throughput: 0.3693784850036239/100 (MB/s)

It's better to cherry-pick to release branches. Currently, it's super inefficient to troubleshoot issues like why the bundle has been split.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@codelipenghui codelipenghui self-assigned this Dec 20, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Dec 20, 2022
@codelipenghui codelipenghui changed the title [improve][broker] Add logs for why namespace bundle been unload [improve][broker] Add logs for why namespace bundle been split Dec 20, 2022
@codelipenghui codelipenghui added this to the 2.12.0 milestone Dec 20, 2022
@codecov-commenter

codecov-commenter commented Dec 20, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #19003 (3c20117) into master (feb3cb4) will increase coverage by 0.36%.
The diff coverage is 2.38%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #19003      +/-   ##
============================================
+ Coverage     46.35%   46.71%   +0.36%     
- Complexity     8939    10510    +1571     
============================================
  Files           597      706     +109     
  Lines         56858    69010   +12152     
  Branches       5905     7391    +1486     
============================================
+ Hits          26357    32241    +5884     
- Misses        27616    33164    +5548     
- Partials       2885     3605     +720     
Flag Coverage Δ
unittests 46.71% <2.38%> (+0.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...elayed/bucket/BookkeeperBucketSnapshotStorage.java 0.00% <0.00%> (ø)
...rg/apache/pulsar/broker/delayed/bucket/Bucket.java 0.00% <0.00%> (ø)
...yed/bucket/BucketSnapshotPersistenceException.java 0.00% <0.00%> (ø)
...d/bucket/BucketSnapshotSerializationException.java 0.00% <0.00%> (ø)
...ar/broker/loadbalance/impl/BundleSplitterTask.java 54.00% <0.00%> (-26.00%) ⬇️
.../pulsar/broker/service/BrokerServiceException.java 48.18% <0.00%> (+1.88%) ⬆️
...e/bookkeeper/mledger/impl/LedgerMetadataUtils.java 68.42% <50.00%> (ø)
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 53.90% <100.00%> (ø)
...lsar/broker/loadbalance/impl/ThresholdShedder.java 3.27% <0.00%> (-27.05%) ⬇️
... and 163 more

@merlimat
merlimat merged commit 8b66a21 into apache:master Dec 20, 2022
@codelipenghui
codelipenghui deleted the penghui/logs-why-bundle-split branch December 21, 2022 01:23
codelipenghui added a commit that referenced this pull request Dec 21, 2022
codelipenghui added a commit that referenced this pull request Dec 21, 2022
codelipenghui added a commit that referenced this pull request Dec 21, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 10, 2023
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants