-
Notifications
You must be signed in to change notification settings - Fork 144
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
节点最大连接数MaxPeers的默认值小于最大共识节点连接数MaxConsensusPeers的默认值 #1791
Comments
ACK |
Alaya 网络 MaxPeers 默认值修改为80. |
限制最大连接数,要考虑后续扩容后,共识节点超过最大连接数,共识节点尝试直连可能会导致其他节点连不上共识节点 |
修改后的逻辑: |
close by done |
MaxPeers 默认值为50,MaxConsensusPeers 默认值为100。
PlatON-Go/node/defaults.go
Line 48 in 83ac8d2
然而,在节点建立连接,握手检查过程中,存在以下逻辑:
PlatON-Go/p2p/server.go
Line 862 in 83ac8d2
可以看出,MaxPeers “包含”了 MaxConsensusPeers,所以节点在实际运行中,节点连接数一直受 MaxPeers 的上限影响。
建议将 MaxPeers 默认值修改为100.
The text was updated successfully, but these errors were encountered: