# How can we add new nodes in cluster at runtime?

**URL:** <https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992>\
**Category:** Elasticsearch\
**Created:** [August 25, 2015, 6:26am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992 "2015-08-25T06:26:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoebalig](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@shoebalig](https://discuss.elastic.co/u/shoebalig)\
**Post date:** [August 25, 2015, 6:26am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/1 "2015-08-25T06:26:12Z")

</div>

Hi Members,  
I have a cluster using N nodes, to scale up my cluster I want to add few  
more nodes at runtime without any downtime. Is there anyway to add nodes in  
cluster using Cluster Update Settings?  
I am using unicast for my clsuter.

Regards  
Shoeb

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 25, 2015, 6:36am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/2 "2015-08-25T06:36:42Z")

</div>

The old nodes don't have to know about the new nodes. It's enough if the new nodes know about the old ones. They'll announce their availability to the new ones. Eventually you'll want all nodes to know about each other, but it's not a prerequisite of node additions.

---

<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:** [August 25, 2015, 7:48am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/3 "2015-08-25T07:48:34Z")

</div>

> [@magnusbaeck](#):
>
> Eventually you'll want all nodes to know about each other

And that happens automatically once the new nodes join! 🙂

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [January 15, 2016, 9:45am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/4 "2016-01-15T09:45:08Z")

</div>

Sorry for responding to this old topic, but I wanted to clear something up:

Would it be best to set the hosts of new nodes to all current nodes?

E.g:  
Cluster with N1 and N2  
New node N3 with hosts[N1,N2]  
New node N4 with hosts[N1,N2,N3]  
remove N2  
New node N5 with hosts[N1,N3, N4]

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 15, 2016, 11:55am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/5 "2016-01-15T11:55:40Z")

</div>

> [@lwintergerst](#):
>
> best to set the hosts of new nodes to all current nodes?

Best practice is to have a set of master nodes (say 3, being sure to set discovery.zen.minimum\_master\_nodes to 2) and specifying the unicast host list on every node as the three master nodes.

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [January 15, 2016, 11:56am UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/6 "2016-01-15T11:56:25Z")

</div>

That makes even more sense.  
Thank you for the response.

---

<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, 11:24pm UTC](https://discuss.elastic.co/t/how-can-we-add-new-nodes-in-cluster-at-runtime/27992/7 "2017-07-05T23:24:08Z")

</div>

Closed on July 5, 2017, 11:24pm UTC


