-
Notifications
You must be signed in to change notification settings - Fork 54
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
chore: consider disabling keepalive on nwaku #1737
Comments
btw, even if we had no traffic, guess that gossipsub hearbeats and the underlying cotrol messages would keep the connection alive? beyond this but perhaps |
Well, I think the control messages are sparse enough with no traffic that the connections do time out. Not exactly sure why, but we observed this previously. Perhaps because GRAFTed connections carry no control messages? That said, as long as we have a proper peer connection management strategy, there should be no strong reason to keep these alive. In fact, it should be simple to test in an offline scenario. I don't really see the need for |
Closing per nwaku meeting Sep 12 '23 |
Background
Previously an optional keepalive mechanism was added to nwaku to use libp2p-ping protocol to keep idle connections alive. Without this mechanism connections would be closed after 5 - 10 mins if it carried no messages.
We have since seen significant increase in network traffic as well as connection management strategies in combination with discovery that may make this mechanism obsolete. Although this mechanism can still be useful in test environments, it's likely not necessary on fleet nodes any more.
We'll have to consider all the implications in more detail, but it should be possible to disable keepalive with no effect.
Acceptance criteria
keepalive
disabled on nwaku fleet nodescc @alrevuelta
The text was updated successfully, but these errors were encountered: