如同磁铁吸引四周的铁粉,热情也能吸引周围的人,改变周围的情况。

Docker es 集群 查不到其它节点

Elasticsearch | 作者 Jabo | 发布于2021年01月04日 | 阅读数:2215

配置1:
cluster.name: "elasticsearch-cluster"
network.host: 0.0.0.0
node.name: node01
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.9.111","192.168.9.112","192.168.9.113"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
http.port: 9200


配置2:
cluster.name: "elasticsearch-cluster"
network.host: 0.0.0.0
node.name: node02
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.9.111","192.168.9.112","192.168.9.113"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
http.port: 9200


配置3
cluster.name: "elasticsearch-cluster"
network.host: 0.0.0.0
node.name: node03
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.9.111","192.168.9.112","192.168.9.113"]
discovery.zen.minimum_master_nodes: 2
http.cors.enabled: true
http.cors.allow-origin: "*"
http.port: 9200
1.png 2.png 3.png 4.png
已邀请:

FFFrp

赞同来自: jizhidecheng Jabo

把数据清了 然后加这两个配置,把三个节点都配置进去
discovery.seed_hosts: ["172.17.0.17:9300"] 
cluster.initial_master_nodes: ["172.17.0.17:9300"]
 

Charele - Cisco4321

赞同来自:

cluster_uuid不一致,各自为政,行成了3个ES集群。
 
另外discovery.zen.*这些参数在新版中已经无效了。加了也不会起作用

要回复问题请先登录注册