Skip to content

Backlog quota: allow time-based quota #9680

Closed

Description

@flowchartsman

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.

Activity

  1. added
    type/enhancement
    on Feb 23, 2021
  2. codelipenghui commented on Mar 2, 2021

    @codelipenghui
    Contributor

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

  3. flowchartsman commented on Mar 2, 2021

    @flowchartsman
    ContributorAuthor

    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.

  4. codelipenghui commented on Mar 3, 2021

    @codelipenghui
    Contributor

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

  5. flowchartsman commented on Mar 4, 2021

    @flowchartsman
    ContributorAuthor

    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.

  6. added
    type/feature
    and removed
    type/enhancement
    on Mar 5, 2021
  7. codelipenghui commented on Mar 5, 2021

    @codelipenghui
    Contributor

    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.

  8. MarvinCai commented on Mar 20, 2021

    @MarvinCai
    Contributor

    I'll try to add this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedtype/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions