# The number of master node of Elasticsearch is only one?

**URL:** <https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817>\
**Category:** Elasticsearch\
**Created:** [July 19, 2016, 1:35am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817 "2016-07-19T01:35:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suzuki\_Keita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suzuki_keita/32/10954_2.png) [@Suzuki\_Keita](https://discuss.elastic.co/u/Suzuki_Keita)\
**Post date:** [July 19, 2016, 1:35am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/1 "2016-07-19T01:35:09Z")

</div>

```auto
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 .

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/2d188e0b087b33ddf6f3e1692419561eaccc67b8.png)

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

Master node in cluster is not chosen only one ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2016, 1:49am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/2 "2016-07-19T01:49:32Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![Suzuki\_Keita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suzuki_keita/32/10954_2.png) [@Suzuki\_Keita](https://discuss.elastic.co/u/Suzuki_Keita)\
**Post date:** [July 19, 2016, 2:08am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/3 "2016-07-19T02:08:38Z")

</div>

Thank you.

`curl HOST:9200/_cat/nodes?v`

```auto
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 ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2016, 3:22am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/4 "2016-07-19T03:22:10Z")

</div>

Exactly 😃

---

<div class="post-metadata">

**Author:** ![Suzuki\_Keita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suzuki_keita/32/10954_2.png) [@Suzuki\_Keita](https://discuss.elastic.co/u/Suzuki_Keita)\
**Post date:** [July 19, 2016, 4:53am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/5 "2016-07-19T04:53:48Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [July 19, 2016, 5:08am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/6 "2016-07-19T05:08:58Z")

</div>

> [@Suzuki\_Keita](#):
>
> discovery.zen.minimum\_master\_nodes: 2

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????

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2016, 5:11am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/7 "2016-07-19T05:11:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [July 19, 2016, 5:14am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/8 "2016-07-19T05:14:05Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 19, 2016, 5:17am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/9 "2016-07-19T05:17:01Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![Suzuki\_Keita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suzuki_keita/32/10954_2.png) [@Suzuki\_Keita](https://discuss.elastic.co/u/Suzuki_Keita)\
**Post date:** [July 19, 2016, 5:18am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/10 "2016-07-19T05:18:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Post date:** [July 19, 2016, 5:19am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/11 "2016-07-19T05:19:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Suzuki\_Keita](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suzuki_keita/32/10954_2.png) [@Suzuki\_Keita](https://discuss.elastic.co/u/Suzuki_Keita)\
**Post date:** [July 19, 2016, 5:24am UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/12 "2016-07-19T05:24:40Z")

</div>

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

dev-1

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

```

dev-2

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

```

dev-3

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

```

false is not exists.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:34pm UTC](https://discuss.elastic.co/t/the-number-of-master-node-of-elasticsearch-is-only-one/55817/13 "2017-07-05T22:34:33Z")

</div>


