Skip to content

[feature] Automatic trigger offloading by time #17361

Closed

Description

@codelipenghui

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Pulsar has supported triggering the data offloading by size threshold

broker.conf

# The number of bytes before triggering automatic offload to long term storage
# (default is -1, which is disabled)
managedLedgerOffloadAutoTriggerSizeThresholdBytes=-1

It will be great if Pulsar can support a time-based offloading threshold
With the time-based offloading threshold, we can easily offload data older than
a certain period of time to the tiered storage

Solution

Add new configuration to broker.conf

# The value can be 7d, 1w, 30m etc
managedLedgerOffloadAutoTriggerTimeThreshold=-1

Also need to support set by namespace policy and topic policy

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/feature
    on Aug 31, 2022
  2. tjiuming commented on Aug 31, 2022

    @tjiuming
    Contributor

    @codelipenghui assign me plz

  3. github-actions commented on Oct 1, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

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

Metadata

Metadata

Assignees

Labels

Staletype/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions