Cluster node for elasticsearch

I have three nodes with settings
server1:

node.name: node-03
node.master: false
node.data: true
server2:

node.name: node-02
node.master: true
node.data: true

Server3:

node.name: node-01
node.master: true
node.data: true

but my server1 is giving an error :

[2018-01-30T11:50:01,030][WARN ][o.e.d.z.ZenDiscovery ] [node-03] not enough master nodes discovered during pinging (found [[]], but needed [-1]), pinging again

a help would a really appreciated

Regards
Shrikant

Server 1 can’t be a master node, nor are you telling it who to talk to in order to discover the cluster.

discovery.zen.ping.unicast.hosts
https://www.elastic.co/guide/en/elasticsearch/reference/6.1/modules-discovery-zen.html

Also, having an even number of master nodes does not provide high availability. For your setup, you need to configure the minimum_master_nodes to 2, meaning both master nodes must be online for the cluster to be operational. If this is not set, each master could potentially determine it could run its own cluster.
https://www.elastic.co/guide/en/elasticsearch/guide/1.x/_important_configuration_changes.html#_minimum_master_nodes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.