-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(graphsync): allow setting of per-peer incoming requests for miners #7578
feat(graphsync): allow setting of per-peer incoming requests for miners #7578
Conversation
7c052a2
to
908e515
Compare
Codecov Report
@@ Coverage Diff @@
## master #7578 +/- ##
==========================================
+ Coverage 39.48% 39.81% +0.32%
==========================================
Files 653 633 -20
Lines 69925 67100 -2825
==========================================
- Hits 27611 26715 -896
+ Misses 37567 35780 -1787
+ Partials 4747 4605 -142
Continue to review full report at Codecov.
|
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.
LGTM as long as folks are ok with the slightly confusing behavior of 0 = no per peer limit.
The 0 made sense as a hidden default, but is perhaps a take confusing as explict config. I think we documented it though so it's probably fine?
I think its fine as we have similar behavior in sealing configurations as well. |
@rvagg @hannahhoward is the total amount of |
@jennijuju yes, |
node/config/types.go
Outdated
// The maximum number of simultaneous data transfers from any single client | ||
// for storage deals. | ||
// Unset by default (0), and values higher than SimultaneousTransfersForStorage | ||
// will have no effect. |
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.
// will have no effect. | |
// will have no effect. Total amount of simultaneous data transfer across all storage clients is also bounded by `SimultaneousTransfersForStorage`. |
thanks @rvagg ! made one small suggestion on the doc - do you think it make sense? |
d336b0b
to
9e7d9af
Compare
@jennijuju yep, I've added your words (fairly closely anyway), rebased and squashed this branch so it's up to date and just one commit now. |
…sfersForStoragePerClient feat(graphsync): allow setting of per-peer incoming requests for miners
@jennijuju to get this started. Exposes graphsync 0.10.3's
MaxInProgressIncomingRequestsPerPeer
asSimultaneousTransfersForStoragePerClient
for storage providers only (the other gs options are exposed for fullnodes/clients too, I'm assuming this is appropriate behaviour).Will need @hannahhoward's eye, and tests would be nice but I have no idea what that might look like.