-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve][cli]Pulsar Dynamic Configuration Feature for Broker-level Configuration #20052
Conversation
@gaozhangmin Please add the following content to your PR description and select a checkbox:
|
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/BrokersBase.java
Outdated
Show resolved
Hide resolved
5e0f321
to
57988a3
Compare
Codecov Report
@@ Coverage Diff @@
## master #20052 +/- ##
============================================
+ Coverage 72.25% 72.95% +0.70%
- Complexity 31946 31959 +13
============================================
Files 1855 1868 +13
Lines 138228 138486 +258
Branches 15224 15241 +17
============================================
+ Hits 99871 101034 +1163
+ Misses 30397 29404 -993
- Partials 7960 8048 +88
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The pr had no activity for 30 days, mark with Stale label. |
@@ -69,29 +69,38 @@ private class UpdateConfigurationCmd extends CliCommand { | |||
@Parameter(names = {"-v", "--value"}, description = "service-configuration value", required = true) | |||
private String configValue; | |||
|
|||
@Parameter(names = {"-s", "--scope"}, description = "cluster or broker address, default is cluster", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use an enum Scope
instead of String here? Ditto other occurance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scope is either cluster or broker address。 unable to enumerate
cc @Technoboy- @AnonHxy maybe you can give a review also? |
The pr had no activity for 30 days, mark with Stale label. |
57988a3
to
7f3e408
Compare
Closed as stale and conflict. |
Motivation
Currently, Pulsar's Dynamic Configuration Feature only supports cluster-level configuration, meaning that any changes made to the dynamic configuration apply to all brokers in the cluster.
This pull request proposes a new feature that allows for broker-level configuration, meaning that changes made to the dynamic configuration will only affect specific machines in the cluster, rather than all of them.
Modifications
Add new parameters
scope
to admin commandsupdate-dynamic-config
,delete-dynamic-config
,get-all-dynamic-config
, scope value is cluster or broker's LookupServiceAddres.Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: gaozhangmin#12