ipfs/kubo
Ver no GitHubAPI for tracking data locallity and transfer progress
Open
#4.028 aberto em 3 de jul. de 2017
help wantedkind/enhancementneed/community-inputstatus/readytopic/api
Métricas do repositório
- Stars
- (13.906 stars)
- Métricas de merge de PR
- (Mesclagem média 4d 2h) (28 fundiu PRs em 30d)
Description
For my project (https://github.com/MichaelMure/TotallyNotArbore) I need to be able to solve two problems:
- is this hash present locally, and if not, what percentage is here ?
- progress statistics would be nice to have (rateIn, rateOut, peersIn, peersOut)
This could be done different ways:
ipfs repo has hashoripfs refs local hash-->yes/no/%- add some logs for added/removed block and use
ipfs logto track what is going in and out of the repository. I actually did that at some point (https://github.com/ipfs/go-ipfs/pull/1892) but it has been deleted in a refactoring. It also mean that the app using ipfs has to replicate the graph of block in memory and track what happen. Not a fan of this solution ipfs repo feed-->feed of added/removed blocks. Again, this means that the app has to track everything.ipfs stats progress hash...oripfs stats bw --hash hash...-->[{ hash, local, progress, rateIn, peersIn, rateOut, peersOut }, ...]It would output a feed of progress for a set of hash, as well as statistics of bandwidth and number of peers participating.
Before I start working on this, I'd like to know if it's something that could be merged in IPFS and what form should it take. Also, I'm not sure what would be practical to implement with the current codebase.
The minimal and easiest to implement is 1.. I would prefer to have something like 4. as well.