Skip to content

LRU auto-strategy for GC #855

Open
Open
@dmpetrov

Description

@dmpetrov

It would be convenient to set up a strategy like LRU instead of removing everything or by time #678.

Use cases:

  1. dvc gc --stragegy LRU 10Gb - release 10Gb from cache
  2. dvc config Core.LRU_Limit 20Gb && dvc run -d input/ -o output.tsv Rscript - it will GC automaticaly as a result of dvc run if cache size if more then 20Gb

This 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: gcRelated go garbage collectionfeature requestRequesting a new featurep3-nice-to-haveIt should be done this or next sprint

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions