Resource Manager: UX and improvements. #9580
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
topic/resource-manager
Issues related to Swarm.ResourceMgr (resource manager)
Description
I identified two main problems that we have to fix on Kubo regarding Resource Manager integration:
Resource Manager is not backward-compatible
We can say that using Resource Manager is not backward-compatible with protocols that are using libp2p, because they must handle these resource manager errors. We have to fix that on our two main protocols: Bitswap and the DHT:
No way from the user side to specify to use all the available resources
We are setting Connections and Streams defaults based on available memory. The number of connections allocated is based on magic numbers and not on real available resources.
Limiting memory and file descriptors will be easier to understand for the user. Defaults will be always ok, and experienced users can still tweak the Resource Manager configuration to limit by Streams or Connections if they need it. The work needed to make this possible is defined below:
Other improvements
One of the things that are also confusing people is the Resource Manager's name. It is not managing resources, but only counts resources in use by libp2p and other processes that want to use it:
ResourceMgr.Limits
configuration from Kubo and use the default libp2p JSON file for it #9603cc @MarcoPolo
The text was updated successfully, but these errors were encountered: