You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a node goes down and rejoins the network using Rust libp2p, it encounters an insufficient peers error. We would like to understand which parameters need to be adjusted to mitigate this issue.
Code Context:
The following code initializes the libp2p swarm:
Hey! Could you provide some logs? I do know there is a issue with quic transport where when a node disconnects and reconnects with the same port before the connection actually times out that it would not reuse that connection. See #5097. If that is the case, the workaround would be to lower the timeout and keepalive low enough so the connection would timeout quickly when the peer disconnect in any manner. See #5097 (comment) for the parameters I use. As for the effects of using such a low duration is hard to gauge. Another workaround would be to try with TCP instead and see if that issue still happens.
When a node goes down and rejoins the network using Rust libp2p, it encounters an
insufficient peers
error. We would like to understand which parameters need to be adjusted to mitigate this issue.Code Context:
The following code initializes the libp2p swarm:
The swarm is initialized as follows:
Expected Behavior:
When a node rejoins the network, it should successfully reconnect to peers and resume normal operations.
Actual Behavior:
After rejoining, the node logs an
insufficient peers
error.Questions:
gossipsub
,kademlia
, orswarm
that should be adjusted to handle node reconnection better?query_timeout
,heartbeat_interval
, orduplicate_cache_time
help in this scenario?Any guidance on resolving this issue would be greatly appreciated!
The text was updated successfully, but these errors were encountered: