Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide direct support for Best-Effort pins? #3121

Open
kevina opened this issue Aug 24, 2016 · 2 comments
Open

Provide direct support for Best-Effort pins? #3121

kevina opened this issue Aug 24, 2016 · 2 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@kevina
Copy link
Contributor

kevina commented Aug 24, 2016

Should we provide direct support for creating best-effort pins? In some ways it might not be necessary because users can just add stuff to the MFS root that they want to keep around but don't want a recursive pin for.

Related to #3069.

@kevina kevina added the need/community-input Needs input from the wider community label Aug 24, 2016
@whyrusleeping
Copy link
Member

Yeah, i'm in support of having best effort pins. Although i think that in order to do that, we might want to first rethink how pins are stored. Take a look at #1580. That bit might be a really nice addition to have before best effort pins because then users would be able to ipfs pin add --type=best /ipfs/<hash>/path/to/dataset and be able to still resolve that full path after a gc run.

@kevina kevina changed the title Prove direct support for Best-Effort pins? Provide direct support for Best-Effort pins? Aug 24, 2016
@whyrusleeping whyrusleeping added the status/deferred Conscious decision to pause or backlog label Sep 14, 2016
@lidel
Copy link
Member

lidel commented Dec 3, 2021

One can do best-effort pinning like this:

  1. ipfs files cp /ipfs/{cid} /mfs-destination will add DAG to MFS, acting as "implicit" pin that protects from GC
  2. ipfs pin -r {cid} (or ipfs dag stat {cid} – preload blocks without explicitly pinning, use MFS for GC protection)

My understanding is that if you interrupt (2), the (1) will protect blocks that are already fetched.

I am not sure how valuable is adding best-effort mode to ipfs pin unless it is the default behavior. When one needs to do some sort of opt-in, MFS (ipfs files cp) feels more intuitive to me, but that could be subjective. Thoughts?

@lidel lidel added need/triage Needs initial labeling and prioritization and removed need/community-input Needs input from the wider community status/deferred Conscious decision to pause or backlog labels Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

3 participants