Skip to content

Commit cfc2c24

Browse files
committed
perf: optimize GitLab client HTTP engine configuration
1 parent 7f6c7af commit cfc2c24

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ambassador-gitlab-client/src/main/kotlin/com/roche/gitlab/api/GitLabApiBuilder.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ class GitLabApiBuilder internal constructor() {
213213
return HttpClient(CIO) {
214214
engine {
215215
this.threadsCount = clientThreadsCount
216+
this.maxConnectionsCount = 1500
217+
endpoint {
218+
keepAliveTime = 10000
219+
maxConnectionsPerRoute = 200
220+
pipelineMaxSize = 25
221+
}
216222
}
217223
defaultRequest {
218224
this.url.takeFrom(

ambassador-storage/src/main/kotlin/com/roche/ambassador/storage/project/ProjectEntityRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface ProjectEntityRepository : PagingAndSortingRepository<ProjectEntity, Lo
1515

1616
@QueryHints(value = [
1717
QueryHint(name = HINT_CACHEABLE, value = "false"),
18-
QueryHint(name = HINT_FETCH_SIZE, value = "" + Integer.MIN_VALUE),
18+
QueryHint(name = HINT_FETCH_SIZE, value = "50"),
1919
])
2020
@Query("SELECT p FROM ProjectEntity p WHERE p.subscribed = true")
2121
fun streamAllForAnalysis(): Stream<ProjectEntity>

0 commit comments

Comments
 (0)