Skip to content

Repo Size Constraints #972

@jbenet

Description

@jbenet

It is a common problem already that the space of go-ipfs grows unbounded. We want to have the ability to limit the growth.


Complicating factors:

  • pinned vs unpinned objects
  • capacity should be configurable
  • capacity should incorporate all repo contents
  • adding (pinning) content beyond capacity

I've been thinking of a setup with two thresholds:

  • gc threshold: if after this limit, all commands trigger a repo gc.
  • local storage capacity: if adding an object to repo would increase capacity, command errors. (i.e. never exceed capacity)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions