Add TTL option for RedisStorage in ReportServiceConfiguration
In the production environment, there is no option to clear the Redis database after each redeploying/restarting of the applications (ex. k8s with many pods).
The are many reasons:
this database can be used for other purposes, but you deprecate RedisStorage with a separate database selection
more complex deploy/restart operations with additional steps to clear Redis
users can use Reporting at this moment
Please add TTL option for RedisStorage in ReportServiceConfiguration
4 comments
Curtis
Posted on:18 Jun 2024 15:07
Hi Momchil,
I appreciate you getting back to me and for providing a solution. It should work for us in the interim.
You can identify the Reporting-related keys based on the Reporting version used in your application or the HostAppIdset in the report service configuration. For example:
redis-cli KEYS "*18.1.24.514*" | xargs redis-cli DEL
Depending on the output of the KEYS command you may need to process the result before passing it to the DEL command. For example, if the keys have spaces in them, you can quote them.
redis-cli KEYS "*18.1.24.514*" | sed 's/\(.*\)/"\1"/' | xargs redis-cli DEL
Regarding the estimate for the release of this feature. Due to other items with higher priority, this feature is no longer in our immediate plans and I cannot provide an honest estimate.
Do you think that the workaround I suggested can cover your scenario?
This is a feature that our development team would like to see implemented. Is there a new estimate for its release?
Thank you!
ADMIN
Dimitar
Posted on:25 May 2023 12:36
Hello Georgy,
Thank you for the feedback!
We agree that such an option would be valuable for users of the RedisStorage implementation. Thus, we have approved the item and plan to implement it for the R3 2023 release later this year.