-
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
[docs]Add topic-level policy config #9108
Conversation
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.
Leave my comments. PTAL
site2/docs/reference-pulsar-admin.md
Outdated
|
||
Usage | ||
```bash | ||
$ pulsar-admin topics subcommand | ||
``` | ||
|
||
From Pulsar 2.7.0, some namespace level policies are available on topic level. To enable topic level policy in Pulsar, you need to configure the following parameters in the `broker.conf` file. |
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.
From Pulsar 2.7.0, some namespace level policies are available on topic level. To enable topic level policy in Pulsar, you need to configure the following parameters in the `broker.conf` file. | |
From Pulsar 2.7.0, some namespace-level policies are available on topic level. To enable topic-level policies in Pulsar, you need to configure the following parameters in the `broker.conf` file. |
same comments for docs of other releases.
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.
Updated, thank you.
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.
Please refer to my comments, some commands name are not aligned with code.
@@ -1815,6 +1822,36 @@ Subcommands | |||
* `get-deduplication` | |||
* `set-deduplication` | |||
* `remove-deduplication` | |||
* `get-max-producers` |
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.
according to code, this should be get-maxProducers
, set-maxProducers
and remove-maxProducers
* `get-offload-policies` | ||
* `set-offload-policies` | ||
* `remove-offload-policies` | ||
* `get-max-unacked-messages-per-subscription` |
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.
get-max-unacked-messages-on-subscription
* `set-offload-policies` | ||
* `remove-offload-policies` | ||
* `get-max-unacked-messages-per-subscription` | ||
* `set-max-unacked-messages-per-subscription` |
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.
set-max-unacked-messages-on-subscription
* `remove-offload-policies` | ||
* `get-max-unacked-messages-per-subscription` | ||
* `set-max-unacked-messages-per-subscription` | ||
* `remove-max-unacked-messages-per-subscription` |
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.
remove-max-unacked-messages-on-subscription
* `get-max-unacked-messages-per-subscription` | ||
* `set-max-unacked-messages-per-subscription` | ||
* `remove-max-unacked-messages-per-subscription` | ||
* `get-max-unacked-messages-per-consumer` |
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.
get-max-unacked-messages-on-consumer
* `set-max-unacked-messages-per-subscription` | ||
* `remove-max-unacked-messages-per-subscription` | ||
* `get-max-unacked-messages-per-consumer` | ||
* `set-max-unacked-messages-per-consumer` |
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.
set-max-unacked-messages-on-consumer
* `remove-max-unacked-messages-per-subscription` | ||
* `get-max-unacked-messages-per-consumer` | ||
* `set-max-unacked-messages-per-consumer` | ||
* `remove-max-unacked-messages-per-consumer` |
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.
remove-max-unacked-messages-on-consumer
@jennifer88huang I think all commands should in lower case and unified format, as for the blue blocks, like |
@freeznet I think |
@freeznet @codelipenghui thank you for your confirmation. |
@jennifer88huang No, topic policy always for one topic, so we don't need to add -per-topic |
@sijia-w confirmed with eng, we need to keep topic-level commands consistent with that in the namespace-level. |
#9215) Fixes #9205 ### Motivation In #9108, we add some topic-level policies commands, and found some commands are not consistent with that for namespace-level. For example, On namespace-level, the policies commands are: ``` get-max-producers set-max-producers remove-max-producers get-max-unacked-messages-per-subscription set-max-unacked-messages-per-subscription remove-max-unacked-messages-per-subscription ``` On topic-level, the polices commands are: ``` get-maxProducers set-maxProducers remove-maxProducers get-max-unacked-messages-on-subscription set-max-unacked-messages-on-subscription remove-max-unacked-messages-on-subscription ``` ### Modifications Keep topic-level policies commands consistent with that for namespace
#9215) Fixes #9205 In #9108, we add some topic-level policies commands, and found some commands are not consistent with that for namespace-level. For example, On namespace-level, the policies commands are: ``` get-max-producers set-max-producers remove-max-producers get-max-unacked-messages-per-subscription set-max-unacked-messages-per-subscription remove-max-unacked-messages-per-subscription ``` On topic-level, the polices commands are: ``` get-maxProducers set-maxProducers remove-maxProducers get-max-unacked-messages-on-subscription set-max-unacked-messages-on-subscription remove-max-unacked-messages-on-subscription ``` Keep topic-level policies commands consistent with that for namespace (cherry picked from commit d557e0a)
Thank you @315157973 for fixing the command name issues in #9215. Shall we go on with the doc PR? @freeznet |
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.
LGTM
Thank you @freeznet |
Motivation
Topic-level policies are available since Pulsar 2.7.0.
Modifications
Add how to configure topic-level policies.
Related to #9161