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

Fix/disable keepalives #1315

Merged
merged 2 commits into from
Jul 21, 2022
Merged

Fix/disable keepalives #1315

merged 2 commits into from
Jul 21, 2022

Conversation

jdknives
Copy link
Member

Did you run make format && make check?
Yes

Fixes #1314

Changes:

  • disable http.Transport keepalives
  • change interval for uptime tracker to expected 5 minutes

How to test this PR:

This was tested with running a visor against production deployment while looping over netstat -ntpw | grep skywire-visor. Without these changes, the visor has permanently 3-5 connections to the deployment open while after these changes, there is only one permanent connection to a given dmsg server.

Note: We need to think about if the additional overhead of re-establishing connections is worth the improvement in concurrent connections to our loadbalancer.

This commit disables the http transport keepalives to prevent all clients having permanent open connections to the deployment
@jdknives jdknives changed the base branch from master to develop July 15, 2022 12:23
@jdknives jdknives marked this pull request as ready for review July 20, 2022 17:09
@jdknives jdknives merged commit d8fe620 into skycoin:develop Jul 21, 2022
@jdknives jdknives deleted the fix/disable-keepalives branch July 21, 2022 10:48
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

Successfully merging this pull request may close these issues.

Fix uptime tracker interval and idle connectinos
2 participants