Planet icon indicating copy to clipboard operation
Planet copied to clipboard

Can we make this part configurable?

Open livid opened this issue 3 years ago • 2 comments

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

livid avatar Jun 08 '22 14:06 livid

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

zu1k avatar Jun 09 '22 01:06 zu1k

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

zu1k avatar Jun 09 '22 01:06 zu1k