Skip to content
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

[Branch-2.10][Cherry-pick] tidy update subscriptions dispatcher rate-limiter #16778

Merged
merged 9 commits into from
Aug 8, 2022

Conversation

AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented Jul 25, 2022

Motivation

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

AnonHxy added 9 commits July 25, 2022 18:12
apache#14387)

Dynamic update topic broker-level publish-rate.

Invoke `org.apache.pulsar.broker.service.BrokerService#registerConfigurationListener` to register   listeners
 about `maxPublishRatePerTopicInMessages` and `maxPublishRatePerTopicInBytes`
…ed (apache#14909)

Remove unused params in initializeRateLimiterIfNeeded

Remove unused params in `org.apache.pulsar.broker.service.persistent.PersistentTopic#initializeRateLimiterIfNeeded`
…he#14890)

### Motivation

 `subscribeThrottlingRatePerConsumer` and `subscribeRatePeriodPerConsumerInSecond` ared dynamic configurations, but can not dynamically update broker-level subscribe-rate limter

### Modifications
- Invoked` org.apache.pulsar.broker.service.BrokerService#registerConfigurationListener` to register listeners
about `subscribeThrottlingRatePerConsumer` and `subscribeRatePeriodPerConsumerInSecond`
-  Also add `org.apache.pulsar.broker.service.AbstractTopic#updateSubscribeRate` to update subscribe rate
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 25, 2022
@AnonHxy
Copy link
Contributor Author

AnonHxy commented Jul 26, 2022

/pulsarbot run-failure-checks

Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

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

LGTM

@codelipenghui codelipenghui merged commit a88e96e into apache:branch-2.10 Aug 8, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants