-
Notifications
You must be signed in to change notification settings - Fork 882
feat: default minimum and maximum connections #828
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
Conversation
License: MIT Signed-off-by: Henrique Dias <[email protected]>
I'm in favour of this change, but for posterity, we should replace it with a desktop profile in IPFS core when it is available ipfs/kubo#4989
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if user changes HighWater
via Settings in Web UI?
IIUC this will override configuration on every start, confusing users trying to change this value.
Would it be possible to run it only once (eg. after ipfs init
)?
That way it will feel more like profile proposed in ipfs/kubo#4989
@lidel good news, the logic only runs on init! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my bad. Looks good then!
We coukd ensure mDNS is enabled too (in case default in go-ipfs chcnges), but that can be separate PR.
From @whyrusleeping notes it sounds like we should set the "LowWater": 50,
"HighWater": 200,
"GracePeriod": "300s" Otherwise
but we could explicitly set them here. I'm not sure what we'd need to change to ensure
|
License: MIT Signed-off-by: Henrique Dias <[email protected]>
Merging this now with the defaults decided here. Let's hope a desktop profile is created soon so we can just use it! 😄 |
Set the range to 200-300. The default was 300-600. Ref: #665
License: MIT
Signed-off-by: Henrique Dias [email protected]