You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/04/30 11:24:49 UTC

[GitHub] [pulsar] massakam opened a new pull request #6851: [broker] Enable users to set subscription expiration time for each namespace

massakam opened a new pull request #6851:
URL: https://github.com/apache/pulsar/pull/6851


   ### Motivation
   
   We can automatically delete inactive subscriptions by setting `subscriptionExpirationTimeMinutes` in broker.conf to a value greater than 0.
   ```sh
   # How long to delete inactive subscriptions from last consuming
   # When it is 0, inactive subscriptions are not deleted automatically
   subscriptionExpirationTimeMinutes=0
   ```
   
   However, since this setting value applies to all topics, we have to set it to 0 if there is even one topic whose subscriptions should not be deleted.
   
   ### Modifications
   
   Enable users to set a subscription expiration time for each namespace. This value overrides `subscriptionExpirationTimeMinutes` in broker.conf.
   ```sh
   $ ./bin/pulsar-admin namespaces set-subscription-expiration-time --time 60 tenant1/ns1
   $ ./bin/pulsar-admin namespaces get-subscription-expiration-time tenant1/ns1
   
   60
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] Anonymitaet commented on pull request #6851: [broker] Enable users to set subscription expiration time for each namespace

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #6851:
URL: https://github.com/apache/pulsar/pull/6851#issuecomment-638218057


   Doc has been added.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org