-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-purge, get rid of old chart versions #316
Comments
I'm interested in this ticket. It's something I could do out of band, but the missing piece is I don't think there's anything in chartmuseum that tracks last used for charts. Does this data currently exist? If we were to add it, where would it be stored? |
@scbizu I think "last read" makes more sense than "last modified", right? You would want to remove charts people are no longer downloading, for example. |
@cep21 You're right , but the storage itself do not support the last read timestamp yet . It will be a huge PR if we add a new mechanism to the storage structure , we should handle every REQ from I think this is why this issue still tag with |
One idea is to store this information inside redis, for example. Another is to use the backend storage itself to store this information and "sync" some kind of ledger every 60 seconds (for example). |
I prefer the second one , the AutoPurge should be provided as an interface function , and it can be differ from the real storage backends. The expiration duration should be configurable if users open the auto purge feature . |
This could be tricky if people are running multiple chartmuseum instances for redundancy, since we'll have to merge ledgers |
It'd be great if we could have more than one conditions to decide whether to delete the charts or not. E.g., Instead of "Delete all the charts older than 2 months", it would be better if we have "Delete all the charts older than 2 months matching a particular regex". This is because you might not want to delete release (e.g., However, one thing that concerns me about regex is you'd want to test it out first to see which charts would be deleted with that particular regex to avoid deleting charts you didn't intend to delete. |
The thread is too long to track information now . And let me draw the conclusion till now , the key points list below:
|
Above looks right. Bullet (3) is probably an enhancement off the core request: bullet (1). Also the difference between |
Nitpick: I think it'd be better to call it Everything else looks good to me @scbizu |
I will be self-assigned to draft one implementation this weekend since I think it will make a big sense for decreasing the pressure of index so that we can both decrease the latency of our APIs and save the disk size of chart storage . Maybe it will be provides with (The dry-run option is already implemented inside our company maybe I can open source it later) (off-topic: Our CI failed again because of too large index refreshing XD) |
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 Signed-off-by: scnace <[email protected]>
…ption , impls #316 (#466) Signed-off-by: scnace <[email protected]> Co-authored-by: Josh Dolitsky <[email protected]>
Where was this left off? I'm willing to try picking up the remaining work. We have 2.5k charts, and would like to purge as many as possible |
@jasondamour This is already implemented , you can use the version in our HEAD and try the |
Add feature flags that enable auto-removal of old chart versions in storage based on various age / last used / version parameters
The text was updated successfully, but these errors were encountered: