You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We aren't flexible in highlighting the information that we want (e.g., most important scopes first, limits that are most highly utilized only)
Notes
The current proposal is to have two commands from Kubo:
Get the limits of a running Kubo node. We should ideally get the root object from the go-libp2p resource manager/accountant and print it out as JSON
Get the current accounting/utilization of a running Kubo node. We should ideally get the root object from the go-libp2p resource manager/accountant and print it out as JSON.
With these sets of information, it's possible to run jq/awk/etc. commands to give output like:
Scope
Limit Name
Limit Value
Current Resource Accounting
Utilization Percentage
System
ConnsInbound
100
50
50%
System
ConnsOutbound
200
10
5%
Transient
ConnsInbound
10
4
40%
Transient
ConnsOutbound
50
10
20%
This is really the key summary users or maintainers need for helping debug.
This assumes we're also doing the work of removing Swarm.ResourceMgr.Limits in favor of limits.json in go-libp2p: #9603 . With that, we are free from the concern of our commands printing out values that can be copy/pasted into Kubo config.
Doing this work should allow us to drop other things on the backlog:
Done Criteria
It is possible for a user to follow docs at https://github.com/ipfs/kubo/blob/master/docs/libp2p-resource-management.md to understand:
Why Important
We have a lot of code right now in our stat/limit commands for printing and analyzing limits. The problems with it are:
Notes
The current proposal is to have two commands from Kubo:
With these sets of information, it's possible to run jq/awk/etc. commands to give output like:
This is really the key summary users or maintainers need for helping debug.
This assumes we're also doing the work of removing
Swarm.ResourceMgr.Limits
in favor of limits.json in go-libp2p: #9603 . With that, we are free from the concern of our commands printing out values that can be copy/pasted into Kubo config.Doing this work should allow us to drop other things on the backlog:
ipfs swarm limit <scope> --reset
is setting to zero all other scopes. #9559In addition to code changes, this work will involve:
The text was updated successfully, but these errors were encountered: