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
<!-- TODO: config compatible with the output of 'swarm limit' - see https://github.com/ipfs/go-ipfs/issues/8858
1645
-
1646
1645
#### `Swarm.ResourceMgr.Limits`
1647
1646
1648
1647
Map of resource limits [per scope](https://github.com/libp2p/go-libp2p-resource-manager#resource-scopes).
1649
1648
1650
-
The format follows [`limit.json`](https://github.com/libp2p/go-libp2p-resource-manager/blob/v0.1.5/limit_config.go#L165)
1651
-
struct from go-libp2p-resource-manager@v0.1.5
1649
+
The map supports fields from [`BasicLimiterConfig`](https://github.com/libp2p/go-libp2p-resource-manager/blob/v0.3.0/limit_config.go#L165-L185)
1650
+
struct from [go-libp2p-resource-manager](https://github.com/libp2p/go-libp2p-resource-manager#readme).
1652
1651
1653
1652
Example:
1654
1653
@@ -1674,18 +1673,16 @@ Example:
1674
1673
}
1675
1674
```
1676
1675
1677
-
Current resource usage and a list of services, protocols, and peers can be obtained via
1678
-
`ipfs swarm stats --help`
1676
+
Current resource usage and a list of services, protocols, and peers can be
1677
+
obtained via `ipfs swarm stats --help`
1679
1678
1680
-
It is also possible to adjust runtime limits via `ipfs stats limit --help`.
1681
-
By default changes are ephemeral (config remains intact), and won't be applied
1682
-
after reboot. To persist them here, pass `limit -s`.
1679
+
It is also possible to adjust some runtime limits via `ipfs stats limit --help`.
1680
+
Changes made via `stats limit` are persisted in `Swarm.ResourceMgr.Limits`.
1683
1681
1684
-
Default: `{}` (empty == implicit defaults from go-libp2p)
0 commit comments