-
Notifications
You must be signed in to change notification settings - Fork 21
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
CORE-308 expand concurrent requests to sam #4830
Conversation
.dispatcher(dispatcher) | ||
.build() | ||
} | ||
|
||
private def getApiClient(token: String)(implicit ev: Ask[F, AppContext]): F[ApiClient] = | ||
for { | ||
ctx <- ev.ask | ||
okHttpClientBuilder = okHttpClient.newBuilder |
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.
I left the builder here because the following todo is still relevant
dispatcher.setMaxRequests(maxConcurrentRequests) | ||
dispatcher.setMaxRequestsPerHost(maxConcurrentRequests) |
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.
this client is only handling a single host so these are both set to the same value
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4830 +/- ##
===========================================
- Coverage 74.59% 74.58% -0.01%
===========================================
Files 166 166
Lines 14609 14612 +3
Branches 1101 1172 +71
===========================================
+ Hits 10898 10899 +1
- Misses 3711 3713 +2
Continue to review full report in Codecov by Sentry.
|
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.
I did not see this as a potential cause in the ticket, but looks like a good thing worth trying 👍
Jira ticket: https://broadworkbench.atlassian.net/browse/CORE-308
Summary of changes
This PR increases the number of concurrent requests a Leo instance can make to Sam from 5 (the default) to 15. This is an attempt to address socket timeout errors that appear in the logs (but are retries, presumably successfully).
What
Why
Testing these changes
What to test
Who tested and where
jenkins retest
orjenkins multi-test
.