# Elasticsearch nodes on same machine unable to find each other

**URL:** <https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846>\
**Category:** Elasticsearch\
**Created:** [May 23, 2017, 5:49pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846 "2017-05-23T17:49:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Austin\_E](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Austin\_E](https://discuss.elastic.co/u/Austin_E)\
**Post date:** [May 23, 2017, 5:49pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846/1 "2017-05-23T17:49:07Z")

</div>

I'm working with big machines so I have decided to run multiple nodes on each server. Before uncommenting `network.host` and `discovery.zen.ping.unicast.hosts` I could boot the cluster and the two nodes would connect. However after adding the hostname(which is the same for both) and the IP with the ports they should run on they no longer connect and instead each form their own cluster. I have tried switching the IP with the hostname as well as starting one and letting it compeley start before starting the second. No matter what I do I cannot get them to connect when `network.host` is configured. Sorry for having to remove some of the info. If you need any more info please let me know.

Edit: When I curl for /\_cat/nodes for each server they both return a cluster of one

Node 1 & 2 output: [https://pastebin.com/h7Lx22JP](https://pastebin.com/h7Lx22JP)

---

<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 24, 2017, 9:51am UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846/2 "2017-05-24T09:51:06Z")

</div>

Please post the settings you changed.

---

<div class="post-metadata">

**Author:** ![Austin\_E](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Austin\_E](https://discuss.elastic.co/u/Austin_E)\
**Post date:** [May 24, 2017, 4:28pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846/3 "2017-05-24T16:28:36Z")

</div>

I changed max\_local\_storage\_nodes to 2 as well as the changes above. Below is a link to my elasticsearch.yml. Is there anything else I can provide that would give you insight?

[https://pastebin.com/VsPByz3L](https://pastebin.com/VsPByz3L)

Update: I've manually set the `network.host` for both nodes to an IP address and added `discovery.zen.minimum_master_nodes: 2`. The issue still continues. Both nodes endlessly ping but never find each other. I then added `node.master=true` and `node.data=false` to the first node and `node.master=true` and `node.data=true` to the second. After this they continue to endlessly ping only finding 1(themselves) out of the 2 needed to form a cluster.

---

<div class="post-metadata">

**Author:** ![Austin\_E](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Austin\_E](https://discuss.elastic.co/u/Austin_E)\
**Post date:** [May 25, 2017, 6:27pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846/4 "2017-05-25T18:27:33Z")

</div>

New info. I moved one node to another machine with all default settings other than `network.host` and they still cannot find one another. I tried to telnet from the first server to the second server (including the second node's port) and it seems no response is given and it just stays on "Escape character is '^]'"

Edit:  
So I should have mentioned that I have 6 machines and currently there are 6 nodes on each of an elastic 2.4 cluster. I tried adding one and it works. I looked in the config and there is nothing unusual except for a plugin called searchguard. Did the discovery method change between versions? I see on the 2.4 cluster has multicast disabled and it is no longer in 5.4 so I don't think that difference could cause this issue.

Edit 2: Also I can access both nodes (by hostname:port & IP:port) through my web browser which is on a different computer on the same network.

---

<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:** [June 22, 2017, 6:27pm UTC](https://discuss.elastic.co/t/elasticsearch-nodes-on-same-machine-unable-to-find-each-other/86846/5 "2017-06-22T18:27:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
