-
Notifications
You must be signed in to change notification settings - Fork 162
bitswap/client: broadcast reduction and metrics #937
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
144a102
wip
gammazero f14784e
update bcast counter
gammazero e474982
inc broacast count from messagequeue
gammazero f43d15f
Add haves received metric
gammazero d62889d
Spam reduction with metrics
gammazero a667550
boradcast to peer if peer already has a pending message
gammazero 53da940
count total blocks and haves
gammazero b2af2d0
mark broadcast targets instead of keeping counts
gammazero f387b14
unique blocks received metric
gammazero 4efd574
separate mutex for broadcast targets
gammazero 7a8e954
use regular mutex for broadcast targets
gammazero a9efd6d
disable piggybacking spam on existing messages
gammazero b33463b
const to enable/disable broadcast reduction logic
gammazero 81e57aa
update changelog
gammazero 75ddcd8
Merge branch 'main' into broadcast-metrics
gammazero be3de17
bitswap client options for broadcast reduction configuration
gammazero f86d849
Rename broadcast config item
gammazero c6c4b45
Update bitswap/client/internal/peermanager/peerwantmanager.go
gammazero c08b882
Merge branch 'main' into broadcast-metrics
gammazero 9bdf013
Rename and document bitswap broadcast config variables
gammazero ce32315
Document btswap broadcast reduction options in changelog
gammazero 9205716
fix doc string
gammazero 6793986
doc fixes
gammazero d468638
Update bitswap/client/internal/peermanager/peerwantmanager.go
gammazero 0a44a99
Review changes
gammazero edc472a
Update CHANGELOG
gammazero 6b6a018
Fix lint warn
gammazero d44c1a2
fix docstring
gammazero 647c30b
Need SkipGauge in config
gammazero d5d913d
Review changes
gammazero 83495ed
Merge branch 'main' into broadcast-metrics
gammazero 411f594
assume local if peer has no addrs
gammazero 6a664c5
chore: typos
lidel db891f9
docs(changelog): document new metrics
lidel 61a9144
Merge branch 'main' into broadcast-metrics
gammazero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.