kubo/core/node
Gus Eggert 74aff245d2
feat: persist limits to Swarm.ResourceMgr.Limits (#8901)
* feat: persist limit changes to config

This changes the "ipfs swarm limit" command so that when limit changes
are applied via the command line, they are persisted to the repo
config, so that they remain in effect when the daemon restarts.

Any existing limit.json can be dropped into the IPFS config easily
using something like:

cat ~/.ipfs/config | jq ".Swarm.ResourceMgr.Limits = $(cat limit.json)" | sponge ~/.ipfs/config

This also upgrades to Resource Manager v0.3.0, which exports the config
schema so that we don't have to maintain our own copy of it.

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-04-28 15:27:16 +02:00
..
helpers constructor: move libp2p related stuff to subpackage 2019-04-23 13:30:25 +02:00
libp2p feat: persist limits to Swarm.ResourceMgr.Limits (#8901) 2022-04-28 15:27:16 +02:00
bitswap.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
builder.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
core.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
dns.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
graphsync.go chore: update deps 2021-05-12 16:58:35 -04:00
groups.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
helpers.go feat: update go-libp2p & go-bitswap 2020-03-24 14:54:09 -07:00
identity.go migrate to go-libp2p-core. 2019-05-31 23:23:52 -07:00
ipns.go update for the new namesys api 2021-05-10 21:04:57 -07:00
peering.go feat: implement peering service 2020-05-25 20:24:41 -07:00
provider.go IPLD Prime In IPFS: Target Merge Branch (#7976) 2021-08-17 13:32:49 -04:00
storage.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00