Repository navigation
fix(kopiur): snapshot daily instead of hourly - #6089
Merged
Merged
Conversation
Retention only keeps daily and weekly snapshots, so 23 of every 24 hourly uploads were pruned and garbage-collected. SQLite databases (qui, sonarr, qbittorrent, home-assistant, autobrr) re-upload most of their chunks each run, which produced ~500GB/month of pack churn in B2. Signed-off-by: Jordan Jones <git@svcs.ok8.sh>
Contributor
|
Warning
Note 26 resources changed across 26 apps Blast radius
konflate 0.6.6 · rendered |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes the shared kopiur
SnapshotSchedulecron fromH * * * *(hourly) toH H * * *(once a day, at a per-app hashed hour and minute).Why
The
puddle-kopiurB2 bucket reached 1.24 TB while the live repository is ~124 GB. Kopia was uploading ~500 GB/month of packs that maintenance deleted again within days (median pack lifetime 4 days).Retention is
keepDaily: 14/keepWeekly: 4, so 23 of every 24 hourly snapshots were pruned and their unique content garbage-collected. SQLite databases rewrite pages throughout the file, so most of their ~2 MB chunks were new on every run. Measured new data per hourly run:qui.dbsonarr.dbtorrents.dbhome-assistant_v2.dbautobrr.dbAll other apps were under 30 MB per run.
Daily snapshots keep the same retained restore points and should cut upload churn by roughly 20x. Kopiur supports
Hin the hour field (crates/api/src/jitter.rs, range 0-23).The hidden-version backlog is handled separately by a B2 lifecycle rule (
daysFromHidingToDeleting: 3), set on the bucket outside GitOps.