-
Notifications
You must be signed in to change notification settings - Fork 19
Connection(peer) management for the underlying overlay #19
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
Comments
Note: my thoughts to manage connections for pubsub is, if our node is currently subscribed to a specific topic, we might want it keeps its connections with its "mesh peers" in that topic, prevent the connections from being closed. |
Hey @mhchia, evolving and maturing the connection manager in libp2p is on my personal roadmap for the next weeks/months, so I would love to chat to you about this. Currently gossipsub/floodsub attaches to the host as a Notifee and gets informed of connections and disconnections: We could consider tagging the connections of the peers on meshsub (topics we're subscribed to) to prevent them from being killed. That said, the connection manager is a bit naïve at the moment; it simply deals with linear scores and closes connections in batches. We've started discussing some topics like protocol weights, traffic shaping, temporary allowances, connection draining, etc. here: libp2p/go-libp2p-connmgr#19 They are very early discussions, but I think you guys have a lot to contribute. |
Hi @raulk thanks for the great introduction on connection manager. I'm currently looking into it, play around and have a few questions regarding trimming connection:
Thanks! |
@NIC619 Answers:
|
but in this setup eventually all connections are trimmed(closed). It seems to me that |
What is wrong?
Despite the fact that gossipsub chooses mesh peers for the overlay of each topic for us, we still need a way to control the connections of the node.
How can it be fixed
Possibly can be solved through
ConnManager
. Should further decidePeerstore
?Related issue:
The text was updated successfully, but these errors were encountered: