配置1:
配置2:
配置3
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
2 个回复
FFFrp
赞同来自: jizhidecheng 、Jabo
discovery.seed_hosts: ["172.17.0.17:9300"]
cluster.initial_master_nodes: ["172.17.0.17:9300"]
Charele - Cisco4321
赞同来自:
另外discovery.zen.*这些参数在新版中已经无效了。加了也不会起作用