-
Notifications
You must be signed in to change notification settings - Fork 607
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
Update init.go to increase max outbound peers for validator nodes #464
Update init.go to increase max outbound peers for validator nodes #464
Conversation
Change to max outbound peers for validator node as requested by Valardragon and proposed by FONDSMATIVE and dff | mp20
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! Just going to leave open for a day or so, to check if any other folks would like to opine. I think this is long term too high, but probably useful short term.
My reasoning is that with high numbers of peers being saturated on the peerlist, increasing the number of outbound connections you try makes sense. And when the p2p network reforms each epoch, you retry connecting to more peers.
(Granted Tendermint p2p is complex, and I may be misunderstanding this!)
Codecov Report
@@ Coverage Diff @@
## main #464 +/- ##
=======================================
Coverage 20.20% 20.20%
=======================================
Files 163 163
Lines 23358 23358
=======================================
Hits 4720 4720
Misses 17878 17878
Partials 760 760 Continue to review full report at Codecov.
|
I'd say "do not merge". I recently made a PR on Tendermint itself and the key to my logic was changing the ratio: I went from previous default (10 outbound and 40 inbound) to new default (20 outbound and 160 inbound) the goal is to have peers gettin all promiscuous. In the p2p layer, we want them connecting, lots. |
Should we be updating the defaults here to those settings Jacob? |
Yes, I should have made a PR to his branch. I'll do that now. |
40 and 320 actually seem more appropriate for us. The network has always seemed kind of choked. |
Updated update to inbound and outbound connections to keep an 8:1 ratio of inbound slots to outbound.
@bfritton I'm sorry I slowed this down! Have been super busy lately. Surely, we needed to change these settings. ❤️ |
pseudo-go-fmt
* Update init.go Change to max outbound peers for validator node as requested by Valardragon and proposed by FONDSMATIVE and dff | mp20 * Update init.go Updated update to inbound and outbound connections to keep an 8:1 ratio of inbound slots to outbound. * Update init.go pseudo-go-fmt Co-authored-by: Jacob Gadikian <[email protected]>
Change to max outbound peers for validator node as requested by Valardragon and proposed by FONDSMATIVE and dff | mp20