# ES 0.20.5 adding a new node to a running cluster (unicast mode)

**URL:** <https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465>\
**Category:** Elasticsearch\
**Created:** [June 18, 2013, 5:29pm UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465 "2013-06-18T17:29:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kobi\_Biton](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kobi\_Biton](https://discuss.elastic.co/u/Kobi_Biton)\
**Post date:** [June 18, 2013, 5:29pm UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/1 "2013-06-18T17:29:21Z")

</div>

hi,

I am trying to figure out how to add new nodes to a running cluster, I am  
configured with unicast ZEN disco , currently 2 nodes are running on the  
cluster

discovery.zen.ping.unicast.hosts: ["10.10.69.10", "10.10.69.11"]

Can I use the REST API to add the node and force discovery ? If not what is  
the best way to avoid cluster recovery ?

I was thinking on the following flow:

- Add the new IP of the new node to the above array on the first node ,  
then restart ES on this node , wait until cluster is GREEN
- Add the nw IP of the new node to the above array on the second node,  
then restart ES on this node , wait until cluster is GREEN
- Finally add the 3rd node with all nodes in the array , start it

Does it make sense ?

Thanks  
Kobi

--  
The above terms reflect a potential business arrangement, are provided solely  
as a basis for further discussion, and are not intended to be and do not  
constitute a legally binding obligation. No legally binding obligations will  
be created, implied, or inferred until an agreement in final form is executed  
in writing by all parties involved.

This email and any attachments hereto may be confidential or privileged.  
If you received this communication by mistake, please don't forward it to  
anyone else, please erase all copies and attachments, and please let me  
know that it has gone to the wrong person. Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kobi\_Biton](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kobi\_Biton](https://discuss.elastic.co/u/Kobi_Biton)\
**Post date:** [June 20, 2013, 8:47am UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/2 "2013-06-20T08:47:12Z")

</div>

OK to whom it may be in interest , I have switched back to multicast

Kobi

On Tuesday, June 18, 2013 8:29:21 PM UTC+3, Kobi Biton wrote:

> hi,
> 
> I am trying to figure out how to add new nodes to a running cluster, I am  
> configured with unicast ZEN disco , currently 2 nodes are running on the  
> cluster
> 
> discovery.zen.ping.unicast.hosts: ["10.10.69.10", "10.10.69.11"]
> 
> Can I use the REST API to add the node and force discovery ? If not what  
> is the best way to avoid cluster recovery ?
> 
> I was thinking on the following flow:
> 
> - Add the new IP of the new node to the above array on the first node ,  
> then restart ES on this node , wait until cluster is GREEN
> - Add the nw IP of the new node to the above array on the second node,  
> then restart ES on this node , wait until cluster is GREEN
> - Finally add the 3rd node with all nodes in the array , start it
> 
> Does it make sense ?
> 
> Thanks  
> Kobi
> 
> The above terms reflect a potential business arrangement, are provided solely  
> as a basis for further discussion, and are not intended to be and do not  
> constitute a legally binding obligation. No legally binding obligations will  
> be created, implied, or inferred until an agreement in final form is executed  
> in writing by all parties involved.
> 
> This email and any attachments hereto may be confidential or privileged.  
> If you received this communication by mistake, please don't forward it  
> to anyone else, please erase all copies and attachments, and please let  
> me know that it has gone to the wrong person. Thanks.

--  
The above terms reflect a potential business arrangement, are provided solely  
as a basis for further discussion, and are not intended to be and do not  
constitute a legally binding obligation. No legally binding obligations will  
be created, implied, or inferred until an agreement in final form is executed  
in writing by all parties involved.

This email and any attachments hereto may be confidential or privileged.  
If you received this communication by mistake, please don't forward it to  
anyone else, please erase all copies and attachments, and please let me  
know that it has gone to the wrong person. Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srivatsa\_Katta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srivatsa_katta/32/2256_2.png) [@Srivatsa\_Katta](https://discuss.elastic.co/u/Srivatsa_Katta)\
**Post date:** [June 20, 2013, 11:55am UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/3 "2013-06-20T11:55:24Z")

</div>

Could you please explain why you decided to go to multicast ?? did the  
approach you outlined didnt work for you ?

-katta

On Thursday, 20 June 2013 14:17:12 UTC+5:30, Kobi Biton wrote:

> OK to whom it may be in interest , I have switched back to multicast
> 
> Kobi
> 
> On Tuesday, June 18, 2013 8:29:21 PM UTC+3, Kobi Biton wrote:
> 
> > hi,
> > 
> > I am trying to figure out how to add new nodes to a running cluster, I  
> > am configured with unicast ZEN disco , currently 2 nodes are running on the  
> > cluster
> > 
> > discovery.zen.ping.unicast.hosts: ["10.10.69.10", "10.10.69.11"]
> > 
> > Can I use the REST API to add the node and force discovery ? If not what  
> > is the best way to avoid cluster recovery ?
> > 
> > I was thinking on the following flow:
> > 
> > - Add the new IP of the new node to the above array on the first node ,  
> > then restart ES on this node , wait until cluster is GREEN
> > - Add the nw IP of the new node to the above array on the second node,  
> > then restart ES on this node , wait until cluster is GREEN
> > - Finally add the 3rd node with all nodes in the array , start it
> > 
> > Does it make sense ?
> > 
> > Thanks  
> > Kobi
> > 
> > The above terms reflect a potential business arrangement, are provided solely  
> > as a basis for further discussion, and are not intended to be and do not  
> > constitute a legally binding obligation. No legally binding obligations will  
> > be created, implied, or inferred until an agreement in final form is executed  
> > in writing by all parties involved.
> > 
> > This email and any attachments hereto may be confidential or privileged.  
> > If you received this communication by mistake, please don't forward it  
> > to anyone else, please erase all copies and attachments, and please let  
> > me know that it has gone to the wrong person. Thanks.
> 
> The above terms reflect a potential business arrangement, are provided solely  
> as a basis for further discussion, and are not intended to be and do not  
> constitute a legally binding obligation. No legally binding obligations will  
> be created, implied, or inferred until an agreement in final form is executed  
> in writing by all parties involved.
> 
> This email and any attachments hereto may be confidential or privileged.  
> If you received this communication by mistake, please don't forward it  
> to anyone else, please erase all copies and attachments, and please let  
> me know that it has gone to the wrong person. Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kobi\_Biton](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@Kobi\_Biton](https://discuss.elastic.co/u/Kobi_Biton)\
**Post date:** [June 20, 2013, 12:16pm UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/4 "2013-06-20T12:16:21Z")

</div>

yes of course in one work: unicast seems like an overhead ... , think  
of a scenario that you need to add more nodes to the cluster (pretty  
common one for us) you need to change the yml config on each node and  
restart the cluster Node by Node making sure that all other nodes  
"sees" the new node .... very problematic if you have a running  
cluster with multiple indices and multiple shards , Maybe I am wrong  
here and there is an option to use a REST call which adds the new  
member and forces a ZEN discovery, that said Multicast in ES is only  
used for node discovery and node master election after that is done,  
the transport module kick in and nodes will communicate with each  
other based on their IP and port (usually 9300) , so from my  
perspective if multicast is not a limitation on your network go for  
it!

Hope this bring more insight to your setup.

Kobi

On Thu, Jun 20, 2013 at 2:55 PM, Srivatsa Katta [vatsa.katta@gmail.com](mailto:vatsa.katta@gmail.com) wrote:

> Could you please explain why you decided to go to multicast ?? did the  
> approach you outlined didnt work for you ?
> 
> -katta
> 
> On Thursday, 20 June 2013 14:17:12 UTC+5:30, Kobi Biton wrote:
> 
> > OK to whom it may be in interest , I have switched back to multicast
> > 
> > Kobi
> > 
> > On Tuesday, June 18, 2013 8:29:21 PM UTC+3, Kobi Biton wrote:
> > 
> > > hi,
> > > 
> > > I am trying to figure out how to add new nodes to a running cluster, I  
> > > am configured with unicast ZEN disco , currently 2 nodes are running on the  
> > > cluster
> > > 
> > > discovery.zen.ping.unicast.hosts: ["10.10.69.10", "10.10.69.11"]
> > > 
> > > Can I use the REST API to add the node and force discovery ? If not what  
> > > is the best way to avoid cluster recovery ?
> > > 
> > > I was thinking on the following flow:
> > > 
> > > - Add the new IP of the new node to the above array on the first node ,  
> > > then restart ES on this node , wait until cluster is GREEN
> > > - Add the nw IP of the new node to the above array on the second node,  
> > > then restart ES on this node , wait until cluster is GREEN
> > > - Finally add the 3rd node with all nodes in the array , start it
> > > 
> > > Does it make sense ?
> > > 
> > > Thanks  
> > > Kobi
> > > 
> > > The above terms reflect a potential business arrangement, are provided  
> > > solely as a basis for further discussion, and are not intended to be and do  
> > > not constitute a legally binding obligation. No legally binding obligations  
> > > will be created, implied, or inferred until an agreement in final form is  
> > > executed in writing by all parties involved.
> > > 
> > > This email and any attachments hereto may be confidential or privileged.  
> > > If you received this communication by mistake, please don't forward it to  
> > > anyone else, please erase all copies and attachments, and please let me know  
> > > that it has gone to the wrong person. Thanks.
> > 
> > The above terms reflect a potential business arrangement, are provided  
> > solely as a basis for further discussion, and are not intended to be and do  
> > not constitute a legally binding obligation. No legally binding obligations  
> > will be created, implied, or inferred until an agreement in final form is  
> > executed in writing by all parties involved.
> > 
> > This email and any attachments hereto may be confidential or privileged.  
> > If you received this communication by mistake, please don't forward it to  
> > anyone else, please erase all copies and attachments, and please let me know  
> > that it has gone to the wrong person. Thanks.
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/GHx3OrwCORg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/GHx3OrwCORg/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
The above terms reflect a potential business arrangement, are provided solely  
as a basis for further discussion, and are not intended to be and do not  
constitute a legally binding obligation. No legally binding obligations will  
be created, implied, or inferred until an agreement in final form is executed  
in writing by all parties involved.

This email and any attachments hereto may be confidential or privileged.  
If you received this communication by mistake, please don't forward it to  
anyone else, please erase all copies and attachments, and please let me  
know that it has gone to the wrong person. Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bhaskar\_Gandavabi](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bhaskar\_Gandavabi](https://discuss.elastic.co/u/Bhaskar_Gandavabi)\
**Post date:** [February 3, 2014, 3:05pm UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/5 "2014-02-03T15:05:10Z")

</div>

Kobi,  
I have 2 es nodes, am trying to establish unicast discovery since my env  
doesnt support multicast. I added the hosts with  
discovery.zen.ping.unicast.hosts and set  
discovery.zen.ping.multicast.enabled: false. Nodes are still not being  
discovered by each other. I am verifying it with Marvel plugin, it shows me  
Nodes: 1, not 2 as I expected. What am I missing? Thanks a lot for any help.

On Tuesday, 18 June 2013 13:29:21 UTC-4, Kobi Biton wrote:

> hi,
> 
> I am trying to figure out how to add new nodes to a running cluster, I am  
> configured with unicast ZEN disco , currently 2 nodes are running on the  
> cluster
> 
> discovery.zen.ping.unicast.hosts: ["10.10.69.10", "10.10.69.11"]
> 
> Can I use the REST API to add the node and force discovery ? If not what  
> is the best way to avoid cluster recovery ?
> 
> I was thinking on the following flow:
> 
> - Add the new IP of the new node to the above array on the first node ,  
> then restart ES on this node , wait until cluster is GREEN
> - Add the nw IP of the new node to the above array on the second node,  
> then restart ES on this node , wait until cluster is GREEN
> - Finally add the 3rd node with all nodes in the array , start it
> 
> Does it make sense ?
> 
> Thanks  
> Kobi
> 
> The above terms reflect a potential business arrangement, are provided solely  
> as a basis for further discussion, and are not intended to be and do not  
> constitute a legally binding obligation. No legally binding obligations will  
> be created, implied, or inferred until an agreement in final form is executed  
> in writing by all parties involved.
> 
> This email and any attachments hereto may be confidential or privileged.  
> If you received this communication by mistake, please don't forward it  
> to anyone else, please erase all copies and attachments, and please let  
> me know that it has gone to the wrong person. Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0a596fdf-e229-46dd-8986-582201ddb080%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0a596fdf-e229-46dd-8986-582201ddb080%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Dan\_Fairs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_fairs/32/1205_2.png) [@Dan\_Fairs](https://discuss.elastic.co/u/Dan_Fairs)\
**Post date:** [February 3, 2014, 8:44pm UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/6 "2014-02-03T20:44:20Z")

</div>

> yes of course in one work: unicast seems like an overhead ... , think  
> of a scenario that you need to add more nodes to the cluster (pretty  
> common one for us) you need to change the yml config on each node and  
> restart the cluster Node by Node making sure that all other nodes  
> "sees" the new node ....

I'm pretty sure this is incorrect actually. I suspect if you had added some existing nodes' IPs to the discovery list on the new node, all the nodes would have formed a cluster. Information about what nodes are in the cluster is stored canonically on the master and replicated around - once a node is known about, its existence should be communicated to the other nodes.

## Cheers, Dan

Dan Fairs | [dan.fairs@gmail.com](mailto:dan.fairs@gmail.com) | @danfairs | [secondsync.com](http://secondsync.com)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/E997488E-7B62-4966-9074-68F55A7345EA%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/E997488E-7B62-4966-9074-68F55A7345EA%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [February 4, 2014, 10:23am UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/7 "2014-02-04T10:23:05Z")

</div>

Hey,

The unicast discovery is just a different way of doing discovery and if  
configured correctly it shouldn't introduce any over head. You should think  
of the list of hosts in the unicast list as a "seed list", it doesn't need  
to be complete. When a node starts it will ping these addresses to register  
it self and discover all other nodes currently in the cluster. After this  
initial discovery bootstrapping, the nodes gossip with each other and do  
not use this list.

Typically you'd put a short list there, like 3, of nodes that you expect to  
always be part of your cluster. Note that it's OK to temporarily take one  
of those nodes off line, as the rest of the list will be used as fall back.

Cheers,  
Boaz

On Monday, February 3, 2014 9:44:20 PM UTC+1, Dan Fairs wrote:

> yes of course in one work: unicast seems like an overhead ... , think  
> of a scenario that you need to add more nodes to the cluster (pretty  
> common one for us) you need to change the yml config on each node and  
> restart the cluster Node by Node making sure that all other nodes  
> "sees" the new node ....
> 
> I'm pretty sure this is incorrect actually. I suspect if you had added  
> some existing nodes' IPs to the discovery list on the new node, all the  
> nodes would have formed a cluster. Information about what nodes are in the  
> cluster is stored canonically on the master and replicated around - once a  
> node is known about, its existence should be communicated to the other  
> nodes.
> 
> ## Cheers, Dan
> 
> Dan Fairs | [dan....@gmail.com](mailto:dan....@gmail.com) \<javascript:\> | @danfairs | [secondsync.com](http://secondsync.com)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6539b1f3-7ebd-4133-84ad-c27e68b36166%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6539b1f3-7ebd-4133-84ad-c27e68b36166%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:52am UTC](https://discuss.elastic.co/t/es-0-20-5-adding-a-new-node-to-a-running-cluster-unicast-mode/12465/8 "2017-07-06T01:52:50Z")

</div>


