Skip to content

retention support per topic #8899

Closed

Description

@kemburi

Is your enhancement request related to a problem? Please describe.
We have some complex calculations to be performed on specific topics and those calculations are not finishing within the retention period configured. hence we see data loss. since only on few of the topics we need to these calcuations to be performed we dont want to set retention globally for all topics.

Describe the solution you'd like
Need the ability to configure message retention to be configurable per topic to override global setting.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    type/enhancement
    on Dec 10, 2020
  2. kemburi commented on Dec 10, 2020

    @kemburi
    Author

    we are using pulsar client 2.6.1

  3. sijie commented on Dec 11, 2020

    @sijie
    Member

    @kemburi topic-level policy (including retention settings) are supported in 2.7.0. You can use bin/pulsar-admin topics to set topic-level retention. The documentation for topic-level policy is being added by @jennifer88huang

  4. added
    deprecated/question
    and removed
    type/enhancement
    on Dec 11, 2020
  5. Jennifer88huang-zz commented on Jan 10, 2021

    @Jennifer88huang-zz
    Contributor

    @kemburi sorry for my late reply. You can set topic-level retention using bin/pulsar-admin topics.
    For details, refer to #9161

    From Pulsar 2.7.0, the namespace level policies are available on topic level. To enable topic level policy in Pulsar, you need to configure the following parameters in the broker.conf file.

    systemTopicEnabled=true
    topicLevelPoliciesEnabled=true

    I've added this configuration in #9108
    Once those PRs are merged, all available topic-level policies are live on our website. Thank you for your patience on it. Any issue, feel free to comment.

  6. kemburi commented on Jan 11, 2021

    @kemburi
    Author

    thank you, you might close this issue.

  7. Jennifer88huang-zz commented on Jan 11, 2021

    @Jennifer88huang-zz
    Contributor

    @kemburi thanks for your feedback. We'll close this issue when those two PRs are merged.

  8. added a commit that references this issue on Mar 6, 2021
    df49876
  9. added a commit that references this issue on Mar 7, 2021
    93886d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

deprecated/question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions