Skip to content

Support limit max subscriptions per topic - #8289

Merged
Jennifer88huang-zz merged 2 commits into
apache:masterfrom
hangc0276:support_limit_max_subscriptions_per_topic
Oct 21, 2020
Merged

Jennifer88huang-zz merged 2 commits into
apache:masterfrom
hangc0276:support_limit_max_subscriptions_per_topic

Conversation

@hangc0276

Copy link
Copy Markdown
Contributor

Fix #8226

Motivation

Support limits the max subscriptions per topic of the Pulsar cluster. When the subscriptions reach the max subscriptions of the topic, the broker should reject the new subscription request and reject the consumer to subscribe to this topic.

Modifications

  1. Add maxSubscriptionsPerTopic=0 in the broker.conf and don't limit by default.
  2. add limit max subscriptions per topic

Verifying this change

AdminApiTest2#testMaxSubscriptionsPerTopic

@hangc0276

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@hangc0276

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@Jennifer88huang-zz Jennifer88huang-zz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve from the documentation perspective.
Thanks for adding the description.

@Jennifer88huang-zz Jennifer88huang-zz added area/broker doc-required Your PR changes impact docs and you will update later. labels Oct 19, 2020
@Jennifer88huang-zz Jennifer88huang-zz added this to the 2.7.0 milestone Oct 19, 2020
@Jennifer88huang-zz
Jennifer88huang-zz merged commit 9951ddc into apache:master Oct 21, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
* ssupport limit max subscriptions per topic

* fix a bug
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
* ssupport limit max subscriptions per topic

* fix a bug
sijie pushed a commit that referenced this pull request Dec 12, 2020
…policy (#8924)

Master Issue: #8866

### Motivation

Currently, #8289 introduced max subscriptions per topic at the broker level but does not support overwrite on the namespace level

### Modifications
Add api for namespace-level policy

### Verifying this change
AdminApiTest2.java

1) Verify that the basic API is correct
2) Verify that the restriction is in effect
3) Verify the priority of namespace level and broker level
sijie pushed a commit that referenced this pull request Dec 15, 2020
…cy (#8948)

Master Issue: #8866

### Motivation
Currently, #8289 introduced max subscriptions per topic at the broker level but does not support overwrite on the namespace level and topic level.

### Modifications
add topic-level max subscriptions per topic API


### Verifying this change
1.Verify that the basic API is correct
2.Verify that the poilcy priority of the broker, namespace, and topic levels is correct.
3.Verify that the policy of each level is correct
codelipenghui pushed a commit that referenced this pull request Dec 21, 2020
…policy (#8924)

Master Issue: #8866

Currently, #8289 introduced max subscriptions per topic at the broker level but does not support overwrite on the namespace level

Add api for namespace-level policy

AdminApiTest2.java

1) Verify that the basic API is correct
2) Verify that the restriction is in effect
3) Verify the priority of namespace level and broker level

(cherry picked from commit b63e288)
codelipenghui pushed a commit that referenced this pull request Feb 18, 2021
…cy (#8948)

Master Issue: #8866

Currently, #8289 introduced max subscriptions per topic at the broker level but does not support overwrite on the namespace level and topic level.

add topic-level max subscriptions per topic API

1.Verify that the basic API is correct
2.Verify that the poilcy priority of the broker, namespace, and topic levels is correct.
3.Verify that the policy of each level is correct

(cherry picked from commit 911a4f9)
@Anonymitaet

Copy link
Copy Markdown
Member

Hi @momo-jun can you follow up on the docs? Thanks

@Anonymitaet Anonymitaet added doc-complete Your PR changes impact docs and the related docs have been already added. and removed doc-required Your PR changes impact docs and you will update later. labels Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc-complete Your PR changes impact docs and the related docs have been already added.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support limits the max subscriptions per topic

4 participants