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 2021/02/23 06:39:35 UTC

[GitHub] [pulsar] flowchartsman opened a new issue #9680: Backlog quota: allow time-based quota

flowchartsman opened a new issue #9680:
URL: https://github.com/apache/pulsar/issues/9680


   Retention policies can be set based on size or time limit (or both), while backlog quotas can only be based on size. The recommendations I've gotten are to set backlog quota to be equal to or less than the retention policy, but if the retention policy is based solely on time, the backlog quota cannot be certain to be less than the retention policy.


----------------------------------------------------------------
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] codelipenghui commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-789013179


   @flowchartsman You can use the message TTL to expire the backlogs of the subscription.


----------------------------------------------------------------
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] codelipenghui commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-791045207


   Yes, the TTL can't achieve the backpressure strategy by the time duration. Thanks for the clarification, I think this should be a new feature, so I will change the label to `type/feature`.


----------------------------------------------------------------
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] MarvinCai commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
MarvinCai commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-803248826


   I'll try to add this feature.


-- 
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] codelipenghui closed issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #9680:
URL: https://github.com/apache/pulsar/issues/9680


   


-- 
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] flowchartsman commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
flowchartsman commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-790856013


   It still feels inconsistent. With TTL there is no good backpressure strategy, and I am then still stuck with trying to guess whether or not backlog-quota fits into TTL time or not, since it is only measured in bytes.
   
   This would also then require me to use retention, TTL _and_ backlog quota, and the docs seem to indicate that this is unusual.


----------------------------------------------------------------
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] flowchartsman commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
flowchartsman commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-789050744


   There's no backpressure policy applied to TTL though, unless I missed something. Even if I'm combining them, there's no way for me to ensure that backlog is less than TTL.


----------------------------------------------------------------
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] flowchartsman edited a comment on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
flowchartsman edited a comment on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-790856013


   It still feels inconsistent. With TTL there is no good backpressure strategy, and I am then still stuck with trying to guess whether or not backlog-quota fits into TTL time or not, since it is only measured in bytes.
   
   This would also then require me to use retention, TTL _and_ backlog quota, and the docs seem to indicate that this is unusual.
   
   Put another way: if retention can be set only with time, and if backlog quota is supposed to be beneath retention, then backlog quota should also support being set with only time.


----------------------------------------------------------------
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] flowchartsman edited a comment on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
flowchartsman edited a comment on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-790856013


   It still feels inconsistent. With TTL there is no good backpressure strategy, and I am then still stuck with trying to guess whether or not backlog-quota fits into TTL time or not, since it is only measured in bytes.
   
   This would also then require me to use retention, TTL _and_ backlog quota, and the docs seem to indicate that this is unusual.
   
   Put another way: if retention period can be set only with time, and if backlog quota is supposed to be equal to or less than retention, then backlog quota should also support being set with only time, otherwise there is no way to know that backlog quota is equal to or less than retention period.


----------------------------------------------------------------
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] codelipenghui commented on issue #9680: Backlog quota: allow time-based quota

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9680:
URL: https://github.com/apache/pulsar/issues/9680#issuecomment-789413304


   Yes, it needs to combine them to achieve the purpose.


----------------------------------------------------------------
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