Skip to content
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

Resource Manager: UX and improvements. #9580

Closed
1 task
ajnavarro opened this issue Jan 24, 2023 · 1 comment
Closed
1 task

Resource Manager: UX and improvements. #9580

ajnavarro opened this issue Jan 24, 2023 · 1 comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature topic/resource-manager Issues related to Swarm.ResourceMgr (resource manager)

Comments

@ajnavarro
Copy link
Member

ajnavarro commented Jan 24, 2023

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:

cc @MarcoPolo

@ajnavarro ajnavarro added the kind/enhancement A net-new feature or improvement to an existing feature label Jan 24, 2023
@ajnavarro ajnavarro self-assigned this Jan 26, 2023
@ajnavarro ajnavarro removed their assignment Feb 5, 2023
@lidel lidel added the topic/resource-manager Issues related to Swarm.ResourceMgr (resource manager) label Feb 14, 2023
@BigLep
Copy link
Contributor

BigLep commented Feb 16, 2023

In the latest round of consolidating/organizing the resource manager/accountant work, I'm closing this in favor of #9650

@BigLep BigLep closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature topic/resource-manager Issues related to Swarm.ResourceMgr (resource manager)
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants