Repository navigation
[docs]Add topic-level policy config - #9108
Conversation
Huanli-Meng
left a comment
There was a problem hiding this comment.
Leave my comments. PTAL
| $ 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.
| 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.
Updated, thank you.
freeznet
left a comment
There was a problem hiding this comment.
Please refer to my comments, some commands name are not aligned with code.
| * `get-deduplication` | ||
| * `set-deduplication` | ||
| * `remove-deduplication` | ||
| * `get-max-producers` |
There was a problem hiding this comment.
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.
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.
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.
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.
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.
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.
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 |
|
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