elasticsearch - 无法将 Elasticsearch 传输服务绑定(bind)到外部接口(interface)

标签 elasticsearch networking centos cluster-computing elastic-stack

我正在尝试使用 2 个虚拟机设置 Elasticsearch 集群。我无法使用外部接口(interface)配置集群传输服务。我可以使用 localhost:9300 作为传输服务,但我不能使用 localhost URL 加入集群。当我使用外部接口(interface)名称/IP 配置集群时,它会引发错误。

[2017-12-22T06:58:56,979][INFO ][o.e.t.TransportService   ] [node-1] publish_address {10.0.1.33:9300}, bound_addresses {10.0.1.33:9300}
[2017-12-22T06:58:56,997][INFO ][o.e.b.BootstrapChecks    ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-12-22T06:58:57,002][ERROR][o.e.b.Bootstrap          ] [node-1] node validation exception
[2] bootstrap checks failed

我的配置:
cluster.name: ProductionCluster
node.name: node-1
network.host: 10.0.1.33
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.1.33","10.0.1.34"]
bootstrap.system_call_filter: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

Elasticsearch Version: 6.1

最佳答案

如果你配置一个外部接口(interface),你被认为是在“生产模式”和bootstrap checks are automatically enforced .你能显示哪些引导检查失败了吗?

错误提到 max number of threads [2048] for user [elasticsearch] is too low你需要increase to at least [4096]
您可以在此处找到操作方法:https://www.elastic.co/guide/en/elasticsearch/reference/current/max-number-threads-check.html

关于elasticsearch - 无法将 Elasticsearch 传输服务绑定(bind)到外部接口(interface),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47939234/

相关文章:

c# - OWIN自托管如何提示防火墙异常?

Python3.6 - 无法导入名称 '_imaging' [Django 2.1.2、Apache 2、CentOS 7]

linux - 安装 DSPACE6 - mirage2 本地自定义失败

pdf - Ghostscript 错误 :/undefined in --get--

datetime - 如何将特定日期映射到Elasticsearch日期/时间字段?

elasticsearch - 从合并返回脚本的度量聚合的脚本

Elasticsearch:_id 基于文档字段?

微服务设计中的 ElasticSearch

c - 使用 c 的代理隧道

java - 使用 Java 恢复失败的压缩