# Configuring Elastic search Nodes to talk to each other in digital ocean droplets

**URL:** <https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289>\
**Category:** Elasticsearch\
**Created:** [January 4, 2016, 4:48am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289 "2016-01-04T04:48:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudaraka007](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sudaraka007](https://discuss.elastic.co/u/sudaraka007)\
**Post date:** [January 4, 2016, 4:48am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/1 "2016-01-04T04:48:42Z")

</div>

I'm a student researching on elastic search and i am trying to configure my elastic nodes to work with each other which are hosted in digital ocean droplets. Can anyone help me? thanks in advance.

---

<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:** [January 4, 2016, 4:50am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/2 "2016-01-04T04:50:52Z")

</div>

What have you tried?

---

<div class="post-metadata">

**Author:** ![sudaraka007](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sudaraka007](https://discuss.elastic.co/u/sudaraka007)\
**Post date:** [January 4, 2016, 5:02am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/3 "2016-01-04T05:02:49Z")

</div>

I actually could not find any resource regarding my problem. i Could only find resources on configuring ES on aws. im very much new to ES and I tried it in my local network but in digital ocean there are public IPs. and sorry if the question feels dumb. 😃 thank you very much Mark for the quick reply

---

<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:** [January 4, 2016, 5:24am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/4 "2016-01-04T05:24:28Z")

</div>

Basically it's [this](https://www.elastic.co/guide/en/elasticsearch/guide/current/_add_failover.html#_add_failover).

Your `cluster.name` needs to be the same on each node, you need to set `discovery.zen.ping.unicast.hosts` and `discovery.zen.minimum_master_nodes` as well. Have a read of [https://www.elastic.co/guide/en/elasticsearch/guide/current/\_important\_configuration\_changes.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/_important_configuration_changes.html)

---

<div class="post-metadata">

**Author:** ![sudaraka007](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sudaraka007](https://discuss.elastic.co/u/sudaraka007)\
**Post date:** [January 4, 2016, 10:34am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/5 "2016-01-04T10:34:12Z")

</div>

Thanks for the information. i went through the documentation and changed the config files of the 2 nodes.

the settings are  
both have the same cluster name and diffarant node names

both have network.host and transport.host set to 0.0.0.0

both have minimum\_master\_nodes set to 1 and multicast disabled

unicast host are set to each other eg node 1 unicast.hosts [node 2 ip]

but when i check for the cluster health it only shows that there is only one node.

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 4, 2016, 12:16pm UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/6 "2016-01-04T12:16:05Z")

</div>

You make several mistakes.

- in order to make ES failsafe in a distributed manner, you need at least 3 nodes, and an odd number of master nodes. 2 master nodes are prone to a split brain situation.

- therefore `minimum_master_nodes` must be set to greater as 1

- the setting `0.0.0.0` is mostly not working in cloud environments. You have to enable a private sub net and use the IP you get assigned from your cloud provider.

---

<div class="post-metadata">

**Author:** ![sudaraka007](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sudaraka007](https://discuss.elastic.co/u/sudaraka007)\
**Post date:** [January 5, 2016, 7:37am UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/7 "2016-01-05T07:37:06Z")

</div>

Thnank you very much for the help jPrante. I thought of carrying out my research in my local network so i could avoid the complications. Thank you again for the help. 😃

---

<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:27pm UTC](https://discuss.elastic.co/t/configuring-elastic-search-nodes-to-talk-to-each-other-in-digital-ocean-droplets/38289/8 "2017-07-05T23:27:07Z")

</div>


