Master election process is not happening

HI,
I have configured multi master node configurtaion in cluster but master election process is not happening correctly ..

I have 4 nodes out of 4 , Node1, Node2 and node3 is master node and node 4 is data node.
Active master node is Node 1. i have configured yml file like below

discovery.seed_hosts: ["Node1", "Node2","Node3","Node4"]

cluster.initial_master_nodes: ["Node1","Node2","Node3"]

After cluster configuration everything is running but when i stopped node1 then node2 is not taking as master .
Is there any configuration i missed here could you please help me out.

You only need to mention the master-eligible nodes in discovery.seed_hosts, so "Node4" shouldn't be there.

This setting is ignored once the cluster is running, and should be removed.

Without logs it's not really possible to help further. What do the logs say?

If you have 3 master eligible nodes you always need 2 available to elect a master. You can therefore not shut down 2 and expect a master to be elected.

If it is so then where i need to mention for data node. Could you please tell me

Yes, here what i have configured is like

Node1
node.master: true
node.data:false
 
Node2
node.master: true
node.data:false

Node3
node.master: true
node.data:false

Configuration is correct ??

because i need to add one more node as data node in this cluster

You don't. You tell the data node how to discover the master, not the other way around.

ok but how to do that could you please help me to configure data node with this master .
I need to add that data node also in this cluster right ..

so in data node how can i configure with discovery.host....

As of now i have three master node is running like below

 "cluster_name" : "test",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 0,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0

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