-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DeleteBackupRequest can trigger kopia cleanup #8365
Comments
You can assign me this too. |
I think first we want to have a discussion around whether triggering this directly is desirable. That could result in too many maint jobs running too close together. It might be sufficient to just configure making all maintenance jobs full and running them every hour or two. Even if we do trigger an immediate full maintenance, blob cleanup won't happen until the next full maint job that happens at least 4 hours later, so an hourly full maint job would result in cleanup within 4 or 5 hours. Adding an addiitonal immediate maint job upon deletion might make it happen half an hour or so sooner, which isn't really much. |
I guess here we want to delete the repo data immediately after the backup is deleted. But that is not how Kopia works:
|
Here are additional notes @weshayutin and @sseago did on maintenance and scenarios where it might be desirable to do a one-time full maintenance.
I'll ask with team for more contexts why this is needed. |
Velero won't be able to delete this immediately -- as @Lyndon-Li mentioned, kopia includes safety mechanisms to prevent data that still might be needed from being deleted prematurely, so even if we immediately ran full maint on backup deletion, we'd still have to wait at least 4 hours for a subsequent full maint to actually delete the data. I think the goal here was to deal with the fact that with only once-daily full maintenance, it could take up to 48 hours for garbage collection to complete. However, I'm not convinced that we want to run full maint as part of backup deletion -- I think we can accomplish the same goal by finding a way to run full maintenance more often than every 24 hours. There's a balance here between running too often (leading to cluster performance problems) and not often enough (leading to higher data/storage costs). For most users, 24 hour full maint cycle is good enough. For certain users who are more concerned with storage costs than cluster load, something like 12 or 6 hours is probably better. Due to the safety mechanisms built into kopia, though -- running full maintenance more frequently than every 4 hours is a waste of resources since that's the minimum time between first and last GC cycle that marks a blob to delete before kopia will delete it. |
Will we still wanna do this if we choose to shorten the time window for repo maintenance as suggested in #8364 ? |
I believe it is still an open need, but is not urgent or ever need a solution. There are remaining enhancements outside of triggering immediate cleanup, such as |
Could close as unplanned but continue discussion if it ever become practical to do so. |
Additionally we found if we use kopia cli with
|
Please go ahead and open a new issue. |
Describe the problem/challenge you have
We want a field in DeletebackupRequest to force a kopia maintenance during backup deletion process in order to more immediately affect change to the storage usage.
Describe the solution you'd like
Anything else you would like to add:
Environment:
velero version
):kubectl version
):/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: