-
Notifications
You must be signed in to change notification settings - Fork 717
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
~80 peers, but config has been long set to 40 + 10 #2347
Comments
Do we think that this is a gaia specific bug, or do we think that this is an issue in tenderment or comet? |
Noticed it on Juno v14.0.0 but not Juno v14.1.0. Maybe something got fixed upstream |
Likely Comet. |
Good point and it'd be the obvious answer, but max 2 or 3 on any chain where I see the issue. |
It's possible there's a race condition between ensurePeers and acceptRoutine. We still need to double-check this, and currently it's very difficult because there's no specification, but maybe some of the unit tests could help. Thanks @gaia for reporting this! Our team's triaging and debugging capacity is still ramping off, but we're looking into it. @mmulji-ic shall I transfer this issue to comebft repo? Or would you like to handle that? I'm quite certain this is not Gaia specific. |
Can also tag it with the |
Hi @adizere , we still like to track this issue, could you open a new issue in the comet-bft repo and then link back to this issue. Added the comet-bft tag . |
The most likely reason is that described here: cometbft/cometbft#486 |
In short, when a node is short of peer addresses it dials the configured seed nodes. When receiving addresses back from a seed, the node immediately starts dialing the provided addresses. This "fast dialing" execution flow disregards the maximum outbound peers configuration flag. To confirm this hypothesis, are the inbound or outbound peers exceeding the maximum configured bounds? |
@cason I'm not sure there is a way to distinguish from JSON/RPC @gaia Can you reproduce the issue and know how to distinguish between inbound or outbound peers? |
I am not sure, but the in the logs this information is printed every 30 seconds, INFO level, see here: https://github.com/cometbft/cometbft/blob/main/p2p/pex/pex_reactor.go#L457 |
I am not able to reproduce the issue currently. The max peers is being respected across several different clients, not just gaiad. Maybe it's because they've been running for a while and it's no longer dialing? I will check again later.
|
The situation I mentioned above only happens when the node dials a seed node. A node only dials a seed node when it is short of addresses, this can happens when the node is fresh and has no addresses at all on its address book and did not manage retrieve enough addresses from its initial peers (e.g. persistent peers). |
happening now on Osmosis v18.0.0. Moving discussion to cometbft/cometbft#486 |
Summary of Bug
More peers than allowed in config.
Version
9.0.1
Steps to Reproduce
How is this possible? Note config.toml last modification date, last time the service was restarted and how many peers it should have VS how many it has.
For Admin Use
The text was updated successfully, but these errors were encountered: