# Add nodes to the cluster on the fly

**URL:** <https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666>\
**Category:** Elasticsearch\
**Created:** [October 26, 2021, 9:27am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666 "2021-10-26T09:27:05Z")\
**Posts on this page:** 7\
**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:** [October 26, 2021, 9:27am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/1 "2021-10-26T09:27:05Z")

</div>

Hello, I have a task to add 2 more nodes in a cluster. Currently we have 5 nodes in a cluster which are all data nodes. Elastic version 7.11.2.

Current discovery parameters set for cluster:

```auto
"discovery.zen.ping.unicast.hosts" which lists all 5 data nodes
"discovery.zen.minimum_master_nodes: 3"

```

My question is which parameters I should set on a new node to it join the cluster on the fly?

1. Do I need to add "discovery.zen.ping.unicast.hosts" parameter which lists all nodes on a new node? Or "cluster.name" would be enough for a node to join the cluster?
2. Do I need to change parameter "discovery.zen.ping.unicast.hosts" on current cluster to include new node?

Thanks!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [October 26, 2021, 9:44am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/2 "2021-10-26T09:44:24Z")

</div>

Both of these settings were deprecated in 7.0 and you should not be using them any more.

Instead, [set `discovery.seed_hosts`](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#discovery-settings) to the addresses of the master nodes only.

---

<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:** [October 26, 2021, 10:11am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/3 "2021-10-26T10:11:41Z")

</div>

So if all my 5 nodes are data notes and master nodes, I would list them all in "discovery.seed\_hosts" parameter on new nodes?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [October 26, 2021, 10:20am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/4 "2021-10-26T10:20:00Z")

</div>

Yes.

---

<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, 10:08am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/5 "2021-11-02T10:08:13Z")

</div>

And if i have minimum of 3 master nodes parameter set up, do I need to change this parameter in the config file on a new nodes?  
I have this parameter on initial 5 node cluster:

```auto
discovery.zen.minimum_master_nodes: 3

```

I plan to add 2 new nodes, do I need to change this parameter on a new nodes?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 2, 2021, 11:13am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/6 "2021-11-02T11:13:50Z")

</div>

> [@Ain\_Ryushika](#):
>
> do I need to change this parameter on a new nodes?

No, this setting was deprecated in 7.0 and shouldn't be used.

---

<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, 11:14am UTC](https://discuss.elastic.co/t/add-nodes-to-the-cluster-on-the-fly/287666/7 "2021-11-30T11:14:43Z")

</div>

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