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: do not reuse connections per default #105

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Conversation

clementnuss
Copy link
Contributor

stop reusing connections per default, by modifying the http.Transport DisableKeepAlive field to true per default. Can be overriden through setting KUBENURSE_REUSE_CONNECTIONS env var to "true"

This will be a minor change, as the results and behaviour of Kubenurse is modified consequently.

stop reusing connections per default, by modifying the http.Transport
DisableKeepAlive field to true per default. Can be overriden through
setting KUBENURSE_REUSE_CONNECTIONS env var to "true"

Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
@clementnuss
Copy link
Contributor Author

@zbindenren @djboris9 what do you think ?

the effect on the number of open file descriptor/goroutines is really interesting. the http request duration also starts to be more interesting !

do you agree that this mode should be the default ?

image

Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
Copy link

github-actions bot commented Jan 12, 2024

Pull Request Test Coverage Report for Build 7584865362

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 76.683%

Totals Coverage Status
Change from base Build 7382603208: -0.3%
Covered Lines: 467
Relevant Lines: 609

💛 - Coveralls

Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
@clementnuss clementnuss marked this pull request as ready for review January 17, 2024 15:00
@zbindenren
Copy link
Member

@zbindenren @djboris9 what do you think ?

the effect on the number of open file descriptor/goroutines is really interesting. the http request duration also starts to be more interesting !

do you agree that this mode should be the default ?

image

@clementnuss LGTM 👍

the default configuration changes: now kubenurse will NOT reuse
connections per default. this permits to have a clearer picture,
as closed long-lived connections might not involve DNS resolution,
and might hide Load balancer pool problems.

Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
@clementnuss clementnuss merged commit 1d45495 into master Jan 22, 2024
12 checks passed
@clementnuss clementnuss deleted the cjmn-patch-2a0d branch January 22, 2024 08:33
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.

None yet

2 participants