# Setting up Zen unicast

**URL:** <https://discuss.elastic.co/t/setting-up-zen-unicast/14219>\
**Category:** Elasticsearch\
**Created:** [November 1, 2013, 5:04pm UTC](https://discuss.elastic.co/t/setting-up-zen-unicast/14219 "2013-11-01T17:04:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [November 1, 2013, 5:04pm UTC](https://discuss.elastic.co/t/setting-up-zen-unicast/14219/1 "2013-11-01T17:04:39Z")

</div>

If I have 3 ES nodes, node1 will be the master node, do I have to set the  
list of hosts in all of the node's elasticsearch.xml config files or just  
the master config? Also, do I include the master node in the list?

discovery.zen.ping.unicast.hosts:["node1:9300 (the currrent node)",  
"node2:9300", "node3:9300"]

or should it be:

discovery.zen.ping.unicast.hosts:["node2:9300", "node3:9300"]

--  
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:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [November 1, 2013, 5:07pm UTC](https://discuss.elastic.co/t/setting-up-zen-unicast/14219/2 "2013-11-01T17:07:55Z")

</div>

I think it would better to specify the list in as many nodes as possible.  
Although specifying it in just master node would work, if the master node  
goes dead then your other nodes might not discover each other.

-Amit.

On Fri, Nov 1, 2013 at 10:04 AM, dan [dan.tuffery@gmail.com](mailto:dan.tuffery@gmail.com) wrote:

> If I have 3 ES nodes, node1 will be the master node, do I have to set the  
> list of hosts in all of the node's elasticsearch.xml config files or just  
> the master config? Also, do I include the master node in the list?
> 
> discovery.zen.ping.unicast.hosts:["node1:9300 (the currrent node)",  
> "node2:9300", "node3:9300"]
> 
> or should it be:
> 
> discovery.zen.ping.unicast.hosts:["node2:9300", "node3:9300"]
> 
> --  
> 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).

--  
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:** ![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, 2:09am UTC](https://discuss.elastic.co/t/setting-up-zen-unicast/14219/3 "2017-07-06T02:09:17Z")

</div>


