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

Fix subscribeRateLimiter cannot be disabled #11614

Merged
merged 4 commits into from
Aug 11, 2021

Conversation

315157973
Copy link
Contributor

@315157973 315157973 commented Aug 10, 2021

Motivation

SubscribeRateLimiter cannot be disabled now.
When there are many subscriptions, it will cause some memory leaks.

  1. Even if subscribeThrottlingRatePerConsumer=0, each subscription will still create SubscribeRateLimiter
  2. Whether it is Broker-level, namespace-level or topic-level, after SubscribeRateLimiter is enabled, it cannot be disabled

memory2

memory

@315157973 315157973 added the doc-not-needed Your PR changes do not impact docs label Aug 10, 2021
@315157973 315157973 self-assigned this Aug 10, 2021
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli requested a review from lhotari August 10, 2021 05:49
@codelipenghui codelipenghui added this to the 2.9.0 milestone Aug 11, 2021
@codelipenghui codelipenghui merged commit 33436f6 into apache:master Aug 11, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Sep 24, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
### Motivation
SubscribeRateLimiter cannot be disabled now.
When there are many subscriptions, it will cause some memory leaks.
1) Even if subscribeThrottlingRatePerConsumer=0, each subscription will still create SubscribeRateLimiter
2) Whether it is Broker-level, namespace-level or topic-level, after SubscribeRateLimiter is enabled, it cannot be disabled
<img width="1766" alt="memory2" src="https://user-images.githubusercontent.com/9758905/128804604-6251d63d-dd8d-44cd-80c7-9b773c1b0f36.png">

<img width="893" alt="memory" src="https://user-images.githubusercontent.com/9758905/128804608-c434f5c7-e315-47d0-a118-ab6221d98099.png">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants