dagstore: quota allocation for transients directory and watermark-based GC #7122
Labels
area/dagstore
area/markets
Area: Markets
kind/feature
Kind: Feature
LM-tech-debt
P2
P2: Should be resolved
team/ignite
Issues and PRs being tracked by Team Ignite at Protocol Labs
Milestone
Context
The dagstore fetches unsealed pieces from the storage subsystem of Lotus into the
transients
directory whenever it needs to serve a retrieval. Once the retrieval completes, the refcount on the transient decreases, and when it's down to 0, it becomes eligible for reclaim (i.e. deletion) by the GC algorithm.GC currently runs every minute by default (frequency can be configured through the
[Dagstore]
section ofconfig.toml
), effectively pruning away unreferenced files almost immediately.This strategy is fail-safe, but it's rather inefficient:
Proposal
transients
directory into an LRU/LFU cache, with an explicit quota assignment (e.g.100GiB
) so that storage providers can place a limit on how much thetransients
directory is allowed to take up.References
filecoin-project/dagstore#65
The text was updated successfully, but these errors were encountered: