如何在Monstache中禁用对Elasticsearch的嗅探?

huangapple go评论103阅读模式
英文:

How to disable sniffing of elasticsearch in Monstache

问题

在使用Monstache时,我遇到了以下错误:

无法创建Elasticsearch客户端:健康检查超时:没有可用的Elasticsearch节点

我在Monstache配置中添加了以下行:

elasticsearch-validate-pem-file = false
elasticsearch-healthcheck-timeout-startup = 200
elasticsearch-healthcheck-timeout = 200

然而,我仍然遇到了上述错误。当我搜索相关信息时,我发现问题是由于Elasticsearch客户端中的嗅探机制引起的。但是我不知道在哪里以及如何进行更改?

我应该指出,我已经阅读了这个教程,但仍然存在一些疑惑。

英文:

I'm getting this error while using Monstache:

Unable to create Elasticsearch client: health check timeout: no Elasticsearch node available

I applied these lines to Monstache configuration:

elasticsearch-validate-pem-file = false
elasticsearch-healthcheck-timeout-startup = 200
elasticsearch-healthcheck-timeout = 200

However, I still encounter the mentioned error. When I searched about it, I found that the problem is due to sniffing in elasticsearch client. But I don't know where and how exactly I must change it?

I should denote that I studied this tutorial for this problem, but I'm still full of ambiguities.

答案1

得分: 0

当我在同一台安装了ELK堆栈的本地服务器上安装了Monstache后,问题得到了解决。此外,远程服务器上的MongoDB数据库已更改为单节点副本集,以便能够连接到Monstache。

英文:

The problem has been solved when I installed Monstache on the same local server on which the ELK stack was installed. Also, the MongoDB database on the remote server has been changed to a single node replica set to be able to connect to Monstache.

答案2

得分: -1

让我们尝试使用

elastic.SetSniff(false)
英文:

let's try to use

elastic.SetSniff(false)

huangapple
  • 本文由 发表于 2021年8月22日 15:04:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/68879186.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定