Graylog 连接到现有的 elasticsearch 显示 503

问题描述

  • Graylog v4.0.7
  • ElasticSearch v7.7
  • MongoDb v4.4

我们正在 kubernetes 集群中设置 Graylog。 Graylog 可以使用 LB 从另一个集群连接到 MongoDB 服务器。当我们将 Graylog 连接到不同集群中的 ElasticSearch 时(使用 LB,例如 https://myelastic.sample.com:443),来自应用程序的日志显示 503。但是当我们 curl 一些 elasticsearch api 时,它显示 200。

这只发生在 graylog pod 中。

Caused by: org.graylog.shaded.elasticsearch7.org.elasticsearch.client.ResponseException: method [GET],host [https://myelastic.sample.com:443],URI [/_alias/graylog_deflector?ignore_throttled=false&ignore_unavailable=false&expand_wildcards=open%2cclosed&allow_no_indices=true],status line [HTTP/1.1 503 Service Unavailable]
upstream connect error or disconnect/reset before headers. reset reason: connection failure
    at org.graylog.shaded.elasticsearch7.org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302) ~[?:?]
    at org.graylog.shaded.elasticsearch7.org.elasticsearch.client.RestClient.performRequest(RestClient.java:272) ~[?:?]
    at org.graylog.shaded.elasticsearch7.org.elasticsearch.client.RestClient.performRequest(RestClient.java:246) ~[?:?]

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)