Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

perf: lower connection manager limits #1926

Merged
merged 1 commit into from
Mar 14, 2019
Merged

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Mar 13, 2019

I've observed that over ~600 peers the node becomes less stable, this lowers the default limits until we can address performance issues in libp2p.

License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@ghost ghost assigned alanshaw Mar 13, 2019
@ghost ghost added the status/in-progress In progress label Mar 13, 2019
LowWater: 600,
HighWater: 900
LowWater: 200,
HighWater: 500
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can try this, but I think 500 is going to end up being too high for the browser. I think it's more reasonably going to be in the range of 50-200.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to get some testing done for this in the browser and adjust it accordingly, for now just setting it to be the same as Node.js.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while it is not enabled in the browser, I think it is fine to be the same

@alanshaw
Copy link
Member Author

Merging because the CI failure is unrelated and will be resolved in a subsequent PR:

  1) cli
       dht
         query:
     Error: Command failed: /Users/travis/build/ipfs/js-ipfs/src/cli/bin.js dht query Qmbkf4u9FFDM5i5PywnpgLuPQg8tP8qBBWXQTWEswYdxwp
connect ECONNREFUSED 127.0.0.1:52855
      at makeError (node_modules/execa/index.js:174:9)
      at Promise.all.then.arr (node_modules/execa/index.js:278:16)
      at process._tickCallback (internal/process/next_tick.js:68:7)

@alanshaw alanshaw merged commit 7926349 into master Mar 14, 2019
@alanshaw alanshaw deleted the perf/lower-connmgr-limits branch March 14, 2019 08:53
@ghost ghost removed the status/in-progress In progress label Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants