ipfs / ipfs/kubo

Periodic GC without watermark

Open
#6,580 11 comments 2 reactions 0 assignees View on GitHub
kind/enhancement topic/docs-ipfs
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

We're about to switch to using the S3 backed datastore in Peergos. However we would like to remove the storage limit, but still have periodic GCs (S3 is practically infinite, and we have external access control and limits per user which we enforce).

Essentially I want to set the GC period, but have it always run at least once in that period and remove most if not all of the un-pinned stuff.

My understanding is that this isn't currently possible because GC only runs if the GC watermark is exceeded?

Personally I think it is counter-intuitive that the GC only runs if both conditions are met, based on the config names I would guess it runs periodically *OR* if the storage watermark is hit, not *AND*. Either way, this should be documented here: https://github.com/ipfs/go-ipfs/blob/master/docs/config.md

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.