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

Optimize HTTP client used for GitHub #689

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

fkorotkov
Copy link
Contributor

Use a single instance with tweaked defaults across all the invocations. Plus use newer API of go-github (including google/go-github#3011 fix).

Previously a default client was used which doesn't have nor request timeout nor idle connection timeout. This resulted in poor p99 performance since sometimes connections were hanging blocking others to access github.com.

Use a single instance with tweaked defaults across all the invocations. Plus use newer API of `go-github` (including google/go-github#3011 fix).

Previously a default client was used which doesn't have nor request timeout nor idle connection timeout. This resulted in poor `p99` performance since sometimes connections were hanging blocking others to access `github.com`.
@fkorotkov fkorotkov requested a review from edigaryev February 15, 2024 20:52
@fkorotkov fkorotkov enabled auto-merge (squash) February 15, 2024 20:53
@fkorotkov fkorotkov merged commit 3a71e8f into master Feb 16, 2024
7 checks passed
@fkorotkov fkorotkov deleted the optiomized-gh-http-client branch February 16, 2024 14:12
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