-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add tracking of data received from remote peers #345
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #345 +/- ##
==========================================
+ Coverage 76.06% 76.58% +0.52%
==========================================
Files 84 85 +1
Lines 6320 6377 +57
==========================================
+ Hits 4807 4884 +77
+ Misses 1256 1240 -16
+ Partials 257 253 -4
|
Nice, looks good so far. What's left to do? I do wonder whether "DataReceived" should be "BlockReceived", make it block-focused all round rather than pretending that there's some other unit of "data" that could be received. Aside from my comments in verifiedcar.go about this, I'm thinking that it would be good to wire this up to the CLI because currently we print out a summary with "Blocks" and "Bytes" but we get the "Blocks" count from the CarWriter Put() count, which includes duplicates, but the "Bytes" from the |
3112cb6
to
ffa34fe
Compare
I agree and I'd be down for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this approach looks good to me aside from whether or not we track blocks for bytes.
ffa34fe
to
7525a04
Compare
Revived and updated. Depends on ipld/go-trustless-utils#8 I dealt with the aggregate event |
Renamed |
a05c6f1
to
2dbd2ce
Compare
Suspicious persistent failures both here and #420 on windows relating mainly, I think, to timeouts. Original form of this branch before I force pushed updates was also failing, for reference that's here: https://github.com/filecoin-project/lassie/actions/runs/5462484065/job/14787992551 - interestingly those failures are on the http retriever; the failures on #420 are on bitswap. Perhaps this adds some major inefficiencies? |
60fcdb6
to
d6ce885
Compare
tracks data received from each peer
d6ce885
to
7e37b00
Compare
Goals
Provide more insight into how much data we're downloading during retrievals from each peer
Implementation
Uses ipfs/boxo#308 to which peers send blocks for Bitswap