mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
* update go-libp2p to v0.18.0
* initialize the resource manager
* add resource manager stats/limit commands
* load limit file when building resource manager
* log absent limit file
* write rcmgr to file when IPFS_DEBUG_RCMGR is set
* fix: mark swarm limit|stats as experimental
* feat(cfg): opt-in Swarm.ResourceMgr
This ensures we can safely test the resource manager without impacting
default behavior.
- Resource manager is disabled by default
- Default for Swarm.ResourceMgr.Enabled is false for now
- Swarm.ResourceMgr.Limits allows user to tweak limits per specific
scope in a way that is persisted across restarts
- 'ipfs swarm limit system' outputs human-readable json
- 'ipfs swarm limit system new-limits.json' sets new runtime limits
(but does not change Swarm.ResourceMgr.Limits in the config)
Conventions to make libp2p devs life easier:
- 'IPFS_RCMGR=1 ipfs daemon' overrides the config and enables resource manager
- 'limit.json' overrides implicit defaults from libp2p (if present)
* docs(config): small tweaks
* fix: skip libp2p.ResourceManager if disabled
This ensures 'ipfs swarm limit|stats' work only when enabled.
* fix: use NullResourceManager when disabled
This reverts commit
|
||
|---|---|---|
| .. | ||
| serialize | ||
| addresses.go | ||
| api.go | ||
| autonat.go | ||
| bootstrap_peers_test.go | ||
| bootstrap_peers.go | ||
| config_test.go | ||
| config.go | ||
| datastore.go | ||
| discovery.go | ||
| dns.go | ||
| experiments.go | ||
| gateway.go | ||
| identity.go | ||
| init_test.go | ||
| init.go | ||
| internal.go | ||
| ipns.go | ||
| migration_test.go | ||
| migration.go | ||
| mounts.go | ||
| peering.go | ||
| plugins.go | ||
| profile.go | ||
| provider.go | ||
| pubsub.go | ||
| remotepin.go | ||
| reprovider.go | ||
| routing.go | ||
| swarm.go | ||
| types_test.go | ||
| types.go | ||