Planet
Planet copied to clipboard
Can we make this part configurable?
Especially HighWater and LowWater connection limits:
"Swarm": {
"AddrFilters": null,
"ConnMgr": {
"GracePeriod": "20s",
"HighWater": 900,
"LowWater": 600,
"Type": "basic"
},
"DisableBandwidthMetrics": false,
"DisableNatPortMap": false,
"RelayClient": {},
"RelayService": {},
"Transports": {
"Multiplexers": {},
"Network": {},
"Security": {}
}
}
Related: https://github.com/ipfs/go-ipfs/issues/6286
In the upcoming release v0.13 , a new swarm resource manager has been added.
This allows for more fine-grained resource usage control.
https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#swarmresourcemgr
Modifying the number of connections and gc frequency does have a great impact on resource usage.
https://zu1k.com/posts/tutorials/p2p/ipfs-easy-use/#%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E4%BC%98%E5%8C%96