LRU auto-strategy for GC #855
Labels
A: gc
Related go garbage collection
feature request
Requesting a new feature
p3-nice-to-have
It should be done this or next sprint
Milestone
It would be convenient to set up a strategy like LRU instead of removing everything or by time #678.
Use cases:
dvc gc --stragegy LRU 10Gb
- release 10Gb from cachedvc config Core.LRU_Limit 20Gb && dvc run -d input/ -o output.tsv Rscript
- it will GC automaticaly as a result ofdvc run
if cache size if more then 20GbThis should work on a shared cache as well for multiple users.
It looks like this appproach will require a special state file in a cache directory to support LRU strategy and some of the DVC commands will modify the file:
dvc run
,dvc repro
etc.The text was updated successfully, but these errors were encountered: