kubo/core/node/libp2p
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
..
addrs.go feat: Addresses.AppendAnnounce (#8177) 2021-11-30 17:58:19 +01:00
discovery.go fix(discovery): fix daemon not starting due to mdns startup failure (#8704) 2022-03-09 07:08:24 -08:00
dns.go explicit construction of DNS resolver 2021-05-10 21:03:27 -07:00
filters.go use a ConnectionManager for filtering addresses 2021-08-19 18:04:48 +02:00
host.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
hostopt.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
libp2p_test.go add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
libp2p.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
nat.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
peerstore.go feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
pnet.go update to new private network interfaces 2020-03-09 19:39:06 -07:00
pubsub.go fix(pubsub): flood publish 2020-05-29 16:42:10 -07:00
rcmgr_defaults.go feat: detect changes in go-libp2p-resource-manager (#8857) 2022-04-08 17:43:30 +02:00
rcmgr_metrics.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
rcmgr.go feat: persist limits to Swarm.ResourceMgr.Limits (#8901) 2022-04-28 15:27:16 +02:00
relay.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
routing.go integrate experimental AcceleratedDHTClient 2021-05-14 04:31:06 -04:00
routingopt.go integrate experimental AcceleratedDHTClient 2021-05-14 04:31:06 -04:00
sec.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
smux.go feat: opt-in Swarm.ResourceMgr (go-libp2p v0.18) (#8680) 2022-04-07 21:06:35 -04:00
topicdiscovery.go ipns(pubsub): utilize persistent pubsub value store 2019-12-11 11:52:05 -05:00
transport.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00