The number of master node of Elasticsearch is only one?

discovery.zen.minimum_master_nodes: 2

Nodes of the cluster in the three , the minimum number of master nodes is set to two .
But look at the cluster, the master node has become to one .
Maybe elasticsearch-head of the monitor screen is the master node that are marked with a star .

Cheking GET /_cat/master, only one node does not appear on console screen.

Master node in cluster is not chosen only one ?

There can only ever be one master node in the cluster. The others are master eligible.

Take a look at curl HOST:9200/_cat/nodes?v.

2 Likes

Thank you.

curl HOST:9200/_cat/nodes?v

host       ip         heap.percent ram.percent load node.role master name        
10.0.1.25  10.0.1.25             7          93 0.00 d         *      dev-1     
10.0.1.115 10.0.1.115           63          79 0.01 d         m      dev-2 
10.0.1.42  10.0.1.42            71          95 0.05 d         m      dev-3 

I see.

discovery.zen.minimum_master_nodes is the minimum number of the combined a master node and master eligible nodes ?

Exactly :smiley:

1 Like

Thanks :slight_smile:

From this you should have only two masters. But here [quote="Suzuki_Keita, post:3, topic:55817"]
host ip heap.percent ram.percent load node.role master name
10.0.1.25 10.0.1.25 7 93 0.00 d * dev-1
10.0.1.115 10.0.1.115 63 79 0.01 d m dev-2
10.0.1.42 10.0.1.42 71 95 0.05 d m dev-3
[/quote]

Its showing three masters. Why????

The * is the master, the m's are master eligible.

It means now we have these setting in all the three nodes ???

node.master: true node.data: true discovery.zen.minimum_master_nodes: 2

Yes.

Yes.
node.master and node.data is default in all the three nodes.

I am asking either its true or false. But not its exists or not

All nodes is node.master and node.data is default, so maybe it is following.

dev-1

node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2

dev-2

node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2

dev-3

node.master: true
node.data: true
discovery.zen.minimum_master_nodes: 2

false is not exists.

1 Like