-
-
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
ResourceMgr UX improvements #8858
Comments
Additional thoughts on this:
|
What's the use case for not persisting limit changes by default? |
Personally, I would always persist to config. Removes surprises. If you feel the same way, just do that. |
Yeah I like just persisting by default, and we can always add a flag later not to if we need it. |
Fixed libp2p/go-libp2p-resource-manager#19 as part of this |
Once constructed, the existing RM limiter can't distinguish between default limits and configured limits, so persisting changes means we'd persist defaults too, which isn't what we want, since it will silently "freeze" the defaults and prevent new defaults from being applied. This is complicated by the fact that we want the limits in both the IPFS config and in a |
If there's a bunch of complexity here that looks application specific around defaults it might be worth just handling things in the go-ipfs config file and not bothering with That being said I wouldn't be surprised if other go-libp2p applications with config files (like lotus) might want (or maybe already have?) something similar so doing this in |
Yeah that's the idea, might as well do it in a way that can be used by other folks too. |
There's also "protopeer" and "transientpeer". These aren't going to be easy to add, they will require changes to resource manager. |
We decided in standup today to run with the suboptimal UX, because fixing it is too time-consuming. I've impl'd that in this PR: #8901 |
Also exported the config schema from resource manager so we can reuse it in go-ipfs and released RM v0.3.0 here: libp2p/go-libp2p-resource-manager#21 |
Description
Part of #8761 (extracted tasks from #8680)
This is a grab-bag for any UX work or open questions related to
Swarm.ResourceMgr
configipfs swarm limit|stats
CLI commands👉 Not urgent, but we should figure these out before we ship ResourceMgr enabled by default.
TODO
Swarm.ResourceMgr.Limits
config should allow users to persist rules across restartsipfs swarm limit
limit.json
used by lotus/go-libp2p teamipfs swarm limit -s
that persists limit intoSwarm.ResourceMgr.Limits
configThe text was updated successfully, but these errors were encountered: