# Dynamically setting discovery.zen.ping.unicast.hosts

**URL:** <https://discuss.elastic.co/t/dynamically-setting-discovery-zen-ping-unicast-hosts/23549>\
**Category:** Elasticsearch\
**Created:** [May 4, 2015, 10:03pm UTC](https://discuss.elastic.co/t/dynamically-setting-discovery-zen-ping-unicast-hosts/23549 "2015-05-04T22:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satnam\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Satnam\_Singh](https://discuss.elastic.co/u/Satnam_Singh)\
**Post date:** [May 4, 2015, 10:03pm UTC](https://discuss.elastic.co/t/dynamically-setting-discovery-zen-ping-unicast-hosts/23549/1 "2015-05-04T22:03:00Z")

</div>

I would like to dynamically set discovery.zen.ping.multicast.enabled and  
discovery.zen.ping.unicast.hosts -- is this possible?  
I've been looking for a REST API call that I can make from my Go program. I  
have a situation where I can't use multicast (running on GCE) and the cloud-gce  
plug-in [https://github.com/elastic/elasticsearch-cloud-gce](https://github.com/elastic/elasticsearch-cloud-gce) won't work for  
my scenario.

Thank you kindly.

Cheers,

Satnam

--  
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/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 4, 2015, 10:20pm UTC](https://discuss.elastic.co/t/dynamically-setting-discovery-zen-ping-unicast-hosts/23549/2 "2015-05-04T22:20:18Z")

</div>

This is not a dynamic setting, it needs to be defined in your config file  
and ES needs to be restarted to read it.

On 5 May 2015 at 08:03, Satnam Singh [satnam6502@gmail.com](mailto:satnam6502@gmail.com) wrote:

> I would like to dynamically set discovery.zen.ping.multicast.enabled and  
> discovery.zen.ping.unicast.hosts -- is this possible?  
> I've been looking for a REST API call that I can make from my Go program.  
> I have a situation where I can't use multicast (running on GCE) and the cloud-gce  
> plug-in [https://github.com/elastic/elasticsearch-cloud-gce](https://github.com/elastic/elasticsearch-cloud-gce) won't work  
> for my scenario.
> 
> Thank you kindly.
> 
> Cheers,
> 
> Satnam
> 
> --  
> 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/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/96a25263-a767-4bed-9858-a8cbb86b0b78%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X8V2KE%2Bw7%3DDHt1f7PHL2%3DOQ8grFPizRKmLNF4CDxJoiwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8V2KE%2Bw7%3DDHt1f7PHL2%3DOQ8grFPizRKmLNF4CDxJoiwQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:15am UTC](https://discuss.elastic.co/t/dynamically-setting-discovery-zen-ping-unicast-hosts/23549/3 "2017-07-06T00:15:46Z")

</div>


