Skip to content

[02] Reference-aware GC for v2/ blobs + gzip the manifest - #20

Open
chondl wants to merge 2 commits into
cph-bucket-first-servingfrom
cph-blob-gc
Open

[02] Reference-aware GC for v2/ blobs + gzip the manifest#20
chondl wants to merge 2 commits into
cph-bucket-first-servingfrom
cph-blob-gc

Conversation

@chondl

@chondl chondl commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Replacement for #7 (auto-closed by branch rename). Part of the cph-staging series.

chondl added 2 commits July 10, 2026 14:46
List v2/ objects, subtract the current manifest's references and objects
younger than a 48h grace window, and delete the remainder in batches.
Exposed as a data-router endpoint (grace_hours and dry_run params) so a
scheduler can trigger it. Legacy paths, hist/, and manifest.json are never
touched.
manifest.json is refetched per client each minute and is the dominant egress
cost. Store it gzipped with Content-Encoding: gzip; GCS transcoding serves it
compressed to browsers (which send Accept-Encoding: gzip) and transparently
decompressed otherwise, so no reader change is needed.
@chondl chondl changed the title [blob-store 2/5] Reference-aware GC for v2/ blobs + gzip the manifest [02] Reference-aware GC for v2/ blobs + gzip the manifest Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant