为什么突然多出了很多ES查询超时的情况呢

zgw06629 发布于 01/21 11:45
阅读 306
收藏 0

应用稳定运行了有半年了 最近几天线上突然多出了很多ES查询超时的异常 如

2020-01-20 11:52:35.536 ERROR 2852 --- [io-8022-exec-34] c.c.p.common.dao.SearchDao               : Search person by id failed

java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-158 [ACTIVE]
        at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:789) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:225) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:212) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1433) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1403) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1373) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1]
        at org.elasticsearch.client.RestHighLevelClient.get(RestHighLevelClient.java:699) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1]
        at com.foo.bar.common.dao.SearchDao.searchPersonById(SearchDao.java:316) ~[common-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]

觉得有点奇怪 就拿上面的这个查询来说 很简单 就是如下的查询而已

curl 'http://localhost:9200/person/_doc/30020382090?pretty'

并且这个时间点(11:52) 服务器的负载 CPU都不高 为什么也会有超时情况呢?

会是什么原因导致的呢?ES内部有超时次数指标吗? 

 

 

加载中
0
f
freezingsky

异常来自于client端, 看一下, 自己client端是否可以通过增加池化数量。

返回顶部
顶部

页面底部区域 foot.htm