Expand Elasticsearch cluster v6 help

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

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.


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

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:

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

Hope this helps.

1 Like

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?

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

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

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