1

我使用的是非常旧的 Elasticsearch 1.x 我知道它的 EOL 但在这里别无选择,因为那时官方 ES 客户端不存在,使用Jest客户端与 Elasticsearch 交互,并且在 Jest 尝试建立连接时偶尔会看到超时异常及以下是日志的堆栈跟踪

rg.apache.http.conn.ConnectTimeoutException: Connect to <es-ip>:9200 [/<es-ip>] failed: connect timed out
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
    at io.searchbox.client.http.JestHttpClient.executeRequest(JestHttpClient.java:109)
    at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:56)

我注意到的一件奇怪的事情是,这主要发生在托管在 AWS 而不是数据中心的 Elasticsearch 实例上,我正在使用 Data dog 与 Elasticsearch 的集成来进行弹性搜索基础设施监控,如果需要,可以从那里提供更多相关细节。

4

0 回答 0