forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[improve][broker] Create the cursor ledger lazily to improve the subs…
…cribe performance (apache#16389) * [feature][broker] Support create ledger cursor lazily ### Motivation Provide a way to create the ledger cursor lazily. It can reduce the subscription creation time-consuming. In the case of millions of topics, consumers can complete subscriptions more quickly. After enabling this feature, the cursor ledger will create will be created during the message acknowledgment. If there are no message acknowledgments happened on a subscription, the cursor ledger will not be created. ### Modification Added new configuration to enable the cursor ledger lazy creation ``` # Whether to create the cursor ledger lazily when recovering a managed cursor backing a durable subscription. # It can reduce the subscription creation time-consuming. In the case of millions of topics, consumers can complete # subscriptions more quickly. # # After enabling this option, the cursor ledger will create will be created during the message acknowledgment. # If there are no message acknowledgments happened on a subscription, the cursor ledger will not be created. # Default is false. managedLedgerLazyCursorLedgerCreationEnabled=false ``` * add doc * Remove configuraiton * Address comment. * address comments * address comments * Fix test * Fix test
- Loading branch information
1 parent
47959b4
commit cccf252
Showing
9 changed files
with
145 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters