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 by Bors] - p2p: add connection gater to prevent dials over max limit #4775
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4775 +/- ##
=========================================
- Coverage 76.8% 76.8% -0.1%
=========================================
Files 259 260 +1
Lines 29491 29524 +33
=========================================
+ Hits 22659 22678 +19
- Misses 5392 5402 +10
- Partials 1440 1444 +4
|
side note: |
can you clarify this part? i expect them to go above high if node is making many concurrent dials, so for example you are at 80 peers, node make 50 dials at the same time, connections will to 130, but that should be rare. is it consistent with your observations or not at all? |
Yeah, more or less what you described. Sporadically going out of bounds and then quickly down. |
bors try |
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
bors merge |
closes: #4771 this change will reject dials from outbound peers when inbound number is 0.8 of high peers number. it will not allow dials to other peers when total number of peers is higher then 1.1 of high peers number. and node is allowed to always dial direct peers note that dials are concurrent, so if there is a burst it is still possible that they will go over the limit for short period of time
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
closes: #4771
this change will reject dials from outbound peers when inbound number is 0.8 of high peers number.
it will not allow dials to other peers when total number of peers is higher then 1.1 of high peers number.
and node is allowed to always dial direct peers
note that dials are concurrent, so if there is a burst it is still possible that they will go over the limit for short period of time