-
Notifications
You must be signed in to change notification settings - Fork 210
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
Node ignores high-peers value defined in the config map #4771
Comments
I am experiencing the same issue. Since update to node v1.0.7 my internet connection is completely overloaded as soon as I start the nodes. I have 12 nodes and each of the nodes reports having about 50 to 80 peers. I tried to reduce the peer count in the config, without success:
|
related: https://github.com/spacemeshos/smapp/issues/1424 total hardcap without autoscaling should be high peers + min peers + transient new connections (min peers). once node reached high-peers watermark, it will disconnect from bootnodes, and reconnect only once crossing min-peers watermark
We expect an improvement for that to land in next go-spacemesh release. Then we will also include that improvement in next smapp release. |
Thanks for the updated version, but unfortunately the issue still persists. Several people confirmed this on Discord. It may be that this is an issue that exists only on Linux, but I might be wrong. |
The situation became worse. I have 3 nodes and they have 271, 278, and 212 connected peers respectively. |
@nenadvasic what's your current config for peers? |
|
ok two items. That's for sure too low limits to do kinda anything because the moment you connect to the bootnode you'll get peers from the bootnode, and there are 10 bootnodes in your config I guess. That does not fully explain 271 though. https://github.com/spacemeshos/go-spacemesh/blob/v1.0.9/p2p/README.md (please note that you need 1.0.9 for that) And configure one node to be direct peer for all other your nodes. |
Thank you, I will take a look. Btw, that node that had
I didn't know that the node can update configs by itself 🤔 |
could you please check what go-spacemesh version are you running? i am running v1.0.8 with the following config, it went above 100 only in the initial bootstrap period after that it never goes above 50-60: {
"p2p": {
"min-peers": 30,
"low-peers": 60,
"high-peers": 100, |
ok two items. That's for sure too low limits to do kinda anything because the moment you connect to the bootnode you'll get peers from the bootnode, and there are 10 bootnodes in your config I guess. That does not fully explain 271 though. https://github.com/spacemeshos/go-spacemesh/blob/v1.0.9/p2p/README.md (please note that you need 1.0.9 for that) And configure one node to be direct peer for all other your nodes. |
Environment
Describe the bug
Spacemesh node constantly has over 100 connections when it's run through Smapp. It seems that
high-peers
value is not used although it's present in the config map. Values defined in the config map are:The issue started to appear with Smapp version
v1.0.11
. I didn't have any problems withv1.0.9
.Steps to reproduce
spacemesh_app_1.0.11_amd64.deb
from the release pageExpected behavior
The number of Connected neighbors should be between 10 and 30.
Actual behavior
The number of Connected neighbors is constantly over 100. The node is running for 3 hours already and the value is not decreasing. Restart also doesn't help.
Logs
N/A
Additional info
It could be that the issue is with the
go-spacemesh
and not Smapp, but I'm not sure.The text was updated successfully, but these errors were encountered: