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

network: new default gossip fanout setting for relays #5005

Merged
merged 3 commits into from
Jan 23, 2023

Conversation

gmalouf
Copy link
Contributor

@gmalouf gmalouf commented Jan 11, 2023

Summary

Introduce override of default gossip fanout to a new default relay gossip fanout when nodes are configured as relays.

Test Plan

Configured node with netAddress and ran locally with and without gossipFanout overridden.

…ssip fanout when nodes are configured as relays.
@gmalouf gmalouf marked this pull request as ready for review January 11, 2023 20:02
@codecov
Copy link

codecov bot commented Jan 11, 2023

Codecov Report

Merging #5005 (0f29e2a) into master (eddf773) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5005      +/-   ##
==========================================
+ Coverage   53.63%   53.65%   +0.01%     
==========================================
  Files         432      432              
  Lines       54057    54059       +2     
==========================================
+ Hits        28996    29004       +8     
+ Misses      22812    22811       -1     
+ Partials     2249     2244       -5     
Impacted Files Coverage Δ
config/localTemplate.go 43.75% <ø> (ø)
config/config.go 50.00% <100.00%> (+1.47%) ⬆️
catchup/service.go 69.32% <0.00%> (-0.49%) ⬇️
ledger/acctupdates.go 69.24% <0.00%> (-0.25%) ⬇️
network/wsNetwork.go 64.74% <0.00%> (ø)
ledger/testing/randomAccounts.go 56.88% <0.00%> (+0.61%) ⬆️
network/wsPeer.go 68.32% <0.00%> (+1.89%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cce cce requested a review from yossigi January 18, 2023 21:51

// If gossip fanout has not been explicitly overridden, use defaultRelayGossipFanout
// rather then the default gossip fanout setting from defaultLocal
if source.GossipFanout == defaultLocal.GossipFanout {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this prevent relays from explicitly overriding this fanout change back the current local default value of 4?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, though they could set 3 or 5.

@algorandskiy algorandskiy changed the title New Feature: New default gossip fanout setting for relays network: new default gossip fanout setting for relays Jan 19, 2023
@algorandskiy
Copy link
Contributor

This should go with #5018

@algorandskiy algorandskiy merged commit 7e37e00 into algorand:master Jan 23, 2023
@gmalouf gmalouf deleted the gossip-fanout-config-relays branch January 23, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants