英文:
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)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论