Skip to content

Commit

Permalink
[Doc] Add doc on how to configure max subscriptions per topic at the …
Browse files Browse the repository at this point in the history
…topic level (#9748)

* add set-max-subscriptions for topic level

* update

* add set-max-subscription for topic level

* update

* update
  • Loading branch information
Jennifer88huang-zz authored Mar 5, 2021
1 parent 1b21d52 commit d05b04c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
29 changes: 28 additions & 1 deletion site2/docs/reference-pulsar-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -1908,6 +1908,9 @@ Subcommands
* `get-inactive-topic-policies`
* `set-inactive-topic-policies`
* `remove-inactive-topic-policies`
* `set-max-subscriptions`
* `get-max-subscriptions`
* `remove-max-subscriptions`

### `compact`
Run compaction on the specified topic (persistent topics only)
Expand Down Expand Up @@ -2063,7 +2066,7 @@ $ pulsar-admin topics terminate {persistent|non-persistent}://tenant/namespace/t
```

### `permissions`
Get the permissions on a topic. Retrieve the effective permissions for a desination. These permissions are defined by the permissions set at the namespace level combined (union) with any eventual specific permissions set on the topic.
Get the permissions on a topic. Retrieve the effective permissions for a destination. These permissions are defined by the permissions set at the namespace level combined (union) with any eventual specific permissions set on the topic.

Usage
```bash
Expand Down Expand Up @@ -2439,6 +2442,30 @@ Usage
$ pulsar-admin topics remove-deduplication tenant/namespace/topic
```
### `set-max-subscriptions`
Set the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics set-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic options
```
### `get-max-subscriptions`
Get the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics get-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic
```
### `remove-max-subscriptions`
Remove the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics remove-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic
```
## `tenants`
Operations for managing tenants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,9 @@ Subcommands
* `get-inactive-topic-policies`
* `set-inactive-topic-policies`
* `remove-inactive-topic-policies`
* `set-max-subscriptions`
* `get-max-subscriptions`
* `remove-max-subscriptions`

### `compact`
Run compaction on the specified topic (persistent topics only)
Expand Down Expand Up @@ -2461,6 +2464,29 @@ Usage
```bash
$ pulsar-admin topics remove-deduplication tenant/namespace/topic
```
### `set-max-subscriptions`
Set the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics set-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic options
```
### `get-max-subscriptions`
Get the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics get-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic
```
### `remove-max-subscriptions`
Remove the maximum number of subscriptions for a topic.
Usage
```bash
$ pulsar-admin topics remove-max-subscriptions {persistent|non-persistent}://tenant/namespace/topic
```
## `tenants`
Operations for managing tenants
Expand Down

0 comments on commit d05b04c

Please sign in to comment.