# Expand Elasticsearch cluster v6 help

**URL:** <https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220>\
**Category:** Elasticsearch\
**Created:** [November 2, 2021, 11:20am UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220 "2021-11-02T11:20:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ain\_Ryushika](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ain_ryushika/32/77273_2.png) [@Ain\_Ryushika](https://discuss.elastic.co/u/Ain_Ryushika)\
**Post date:** [November 2, 2021, 11:20am UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220/1 "2021-11-02T11:20:12Z")

</div>

Elasticsearch version 6.8.17, all nodes are data and master nodes.

Hello, I have a need to expand current Elasticsearch cluster from 3 to 6 nodes.  
I have a question regarding parameter  
"discovery.zen.minimum\_master\_nodes"

It should be set to (N/2)+1

So if I'll add new nodes one by one, I should set this parameter to a different number on each node?

on 4 node = 3  
on 5 node = 3  
on 6 node = 4

How about initial 3 nodes where this paramter set to 2, should I change it to 4 and restart nodes or how this works?  
How should I configure this parameter to correctly expand my current cluster.

Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 2, 2021, 11:41am UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220/2 "2021-11-02T11:41:47Z")

</div>

You could also keep this setting intact and just add new data nodes only by setting for each new node `node.master: false`.

> [@Ain\_Ryushika](#):
>
> How should I configure this parameter to correctly expand my current cluster.

Otherwise, if you want all nodes to be master eligibles, you should start the 3 new nodes and then use the cluster settings update API to update this value:

```auto
PUT /_cluster/settings
{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 4
    }
}

```

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Ain\_Ryushika](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ain_ryushika/32/77273_2.png) [@Ain\_Ryushika](https://discuss.elastic.co/u/Ain_Ryushika)\
**Post date:** [November 2, 2021, 11:47am UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220/3 "2021-11-02T11:47:54Z")

</div>

Thanks, this is helps.  
Can I also ask about "discovery.zen.ping.unicast.hosts", it set to 3 nodes:  
discovery.zen.ping.unicast.hosts: [node1,node2,node3]

On each new node I should include previously added node? so it would be  
node4 [1,2,3]  
node5 [1,2,3,4]  
node6 [1,2,3,4,5]

Do I need to change this parameter on inital 3 nodes to include all 6 nodes?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 2, 2021, 4:11pm UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220/4 "2021-11-02T16:11:37Z")

</div>

I'd change everything on all the nodes. But I'd not restart the running ones.

```auto
discovery.zen.ping.unicast.hosts: [node1, node2, node3, node4, node5, node6]

```

---

<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:** [November 30, 2021, 4:11pm UTC](https://discuss.elastic.co/t/expand-elasticsearch-cluster-v6-help/288220/5 "2021-11-30T16:11:47Z")

</div>

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