Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we make this part configurable? #17

Open
livid opened this issue Jun 8, 2022 · 2 comments
Open

Can we make this part configurable? #17

livid opened this issue Jun 8, 2022 · 2 comments

Comments

@livid
Copy link
Member

livid commented Jun 8, 2022

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: ipfs/kubo#6286

@zu1k
Copy link

zu1k commented Jun 9, 2022

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
Copy link

zu1k commented Jun 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants