codelipenghui opened a new issue, #17361: URL: https://github.com/apache/pulsar/issues/17361
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/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! -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
