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

subscriptionExpiration for topic #9307

Closed
uestczshen opened this issue Jan 25, 2021 · 2 comments
Closed

subscriptionExpiration for topic #9307

uestczshen opened this issue Jan 25, 2021 · 2 comments
Labels
deprecated/question Questions should happened in GitHub Discussions

Comments

@uestczshen
Copy link

for some reasons, my subscriptionName changes when my server restarts. But the old subname still exists in pulsar-server and alarms messages heap up. so maybe there should be expire policies for unused subscription.

@uestczshen uestczshen added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jan 25, 2021
@jiazhai jiazhai added deprecated/question Questions should happened in GitHub Discussions and removed type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Jan 25, 2021
@jiazhai
Copy link
Member

jiazhai commented Jan 25, 2021

Yes, there is ttl policy for this: https://pulsar.apache.org/docs/en/cookbooks-retention-expiry/
This is a kind of question, would like to close this issue, if the ttl policy could not solve your issue, feel free to reopen this issue.

@jiazhai jiazhai closed this as completed Jan 25, 2021
@nkurihar
Copy link
Contributor

@uestczshen
subscriptionExpirationTimeMinutes seems to help you:

pulsar/conf/broker.conf

Lines 178 to 180 in 2dc2470

# How long to delete inactive subscriptions from last consuming
# When it is 0, inactive subscriptions are not deleted automatically
subscriptionExpirationTimeMinutes=0

This setting can be enabled at broker level or namespace level.
cf: #6851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated/question Questions should happened in GitHub Discussions
Projects
None yet
Development

No branches or pull requests

3 participants