1
votes

I am trying to setup 2 nodes cluster for Elastic search.

cluster.name:test-cluster

node.name: es-node1

node.master: true node.data: true

path.data: /es/data path.logs: /es/log

network.host: privateIP

http.port: 9200 transport.tcp.port: 9300

discovery.zen.ping.unicast.hosts: [PublicIP]

discovery.zen.minimum_master_nodes: 1

1
Are the two nodes on the same machine? What is the configuration of the second node? - Val
no its different machine. same configuration except node.name:es-node2 privateIP publicIP - Venkatesh

1 Answers

2
votes

On node 1 you need to have this so that node 2 can see node 1

network.host: PublicIP-Node1
discovery.zen.ping.unicast.hosts: [PublicIP-Node2]

Similarly, on node 2 you need to have this:

network.host: PublicIP-Node2
discovery.zen.ping.unicast.hosts: [PublicIP-Node1]