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

BCDA-8528-Update-MaxIdleConnsPerHost #1019

Conversation

bhagatparwinder
Copy link
Contributor

🎫 Ticket

https://jira.cms.gov/browse/BCDA-8528

🛠 Changes

Improve worker performance by cleaning up idle connections
bluebutton.go -> NewBlueButtonClient, in the transport, set MaxIdleConnsPerHost

ℹ️ Context

The default setting of 2 for MaxIdleConnsPerHost leads to a lot of sockets left in our kernel in the TIME_WAIT state. Setting it to match MaxIdleConns mean that we get a lot more reuse per socket.

References: Medium and GitHub

@bhagatparwinder bhagatparwinder merged commit 75fb669 into main Dec 17, 2024
5 checks passed
@bhagatparwinder bhagatparwinder deleted the parwinder/BCDA-8528-address-unhealthy-workers-idle-connections branch December 17, 2024 20:06
carlpartridge added a commit that referenced this pull request Dec 20, 2024
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.

2 participants