-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Computed default ResourceMgr limits account for ConnMgr HighWater and are sufficiently high #9545
Comments
I don't think this is required there, this just point to https://github.com/ipfs/kubo/blob/master/docs/libp2p-resource-management.md. |
I don't think this is worth it here either, it describe the current high level strategy and then links to
|
@Jorropo fair enough, below section in FAQ needs to be updated tho: How does the resource manager (ResourceMgr) relate to the connection manager (ConnMgr)?
(Replace the last paragraph with info how Kubo autoscales ResourceMgr to be at least 2x |
Hello I got exception in related to this topic, #9695, can somebody help? |
Done Criteria
The computed default resource manager limits account for how the connection manager is configured and are sufficiently high to allow Kubo to operate. Specifically, this means these limits:
must be (~20%?) greater than the max of
Swarm.ResourceMgr.System limits are hard system limits and we're ensuring that System.ConnsInbound and System.StreamsInbound are greater than 800 and two times the connection manager's high water mark.
Any user-supplied override limits are applied on top of this.
Docs update: https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgrWhy Important
This is footgun causing user confusion and challenge for maintainers in debugging problems.
Swarm.ConnMgr has been present in Kubo for years and users have adjusted this value for their usecses. It is a soft limit though, and having hard limits from Swarm.ResourceMgr that are under the soft values of Swarm.ConnMgr causes unexpected behavior.
In addition, during Kubo 0.17 and the 0.18 RC phase, unexpected failures have occurred when the overall ResourceMgr.System.ConnsInbound hard limits have been set too low. The Computed Default Limits for the ResourceMgr shouldn't trigger this.
Notes
The text was updated successfully, but these errors were encountered: