Skip to content

perf: 增加log服务的es连接超时时间和连接数 #12609

@royalhuang

Description

@royalhuang

java.lang.RuntimeException: error while performing request
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:928)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:299)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:287)
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2154)
at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:1279)
at com.tencent.devops.log.service.impl.LogServiceESImpl.isExistIndex(LogServiceESImpl.kt:1338)
at com.tencent.devops.log.service.impl.LogServiceESImpl.getQueryLogs(LogServiceESImpl.kt:1096)
at com.tencent.devops.log.service.impl.LogServiceESImpl.doQueryLogsAfterLine(LogServiceESImpl.kt:845)
at com.tencent.devops.log.service.impl.LogServiceESImpl.queryLogsAfterLine(LogServiceESImpl.kt:301)
at com.tencent.devops.log.service.BuildLogQueryService.getAfterLogs(BuildLogQueryService.kt:244)
at com.tencent.devops.log.service.BuildLogQueryService.getAfterLogs$default(BuildLogQueryService.kt:214)
at com.tencent.devops.log.resources.ServiceLogResourceImpl.getAfterLogs(ServiceLogResourceImpl.kt:146)
Caused by: java.util.concurrent.TimeoutException: Connection lease request time out
at org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractNIOConnPool.java:411)
at org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:280)
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestConnection(PoolingNHttpClientConnectionManager.java:295)
at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.requestConnection(AbstractClientExchangeHandler.java:381)
at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(DefaultClientExchangeHandlerImpl.java:130)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.execute(CloseableHttpAsyncClientBase.java:116)
at org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:138)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:295)

Metadata

Metadata

Assignees

Labels

area/ci/backendCI 后端issuedoneProduction environment in tencent has been deploykind/enhancement功能改进特性

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions