# How to configure two app server nodes to connect to same elasticsearch cluster?

**URL:** https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653
**Category:** Elasticsearch
**Created:** [May 5, 2017, 5:32am UTC](https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653 "2017-05-05T05:32:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Santhosh\_Devadiga](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@Santhosh\_Devadiga](https://discuss.elastic.co/u/Santhosh_Devadiga)
#### Post date: [May 5, 2017, 5:32am UTC](https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653/1 "2017-05-05T05:32:20Z")

</div>

Hi  
We have one code base to connect elastic search (localhost:9200). We deployed this code on two different boxes under load balancing server. In this case, how to configure ES in 2 different machines to connect ES and index should reflect both sides.

---

<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 6, 2017, 4:01am UTC](https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653/2 "2017-05-06T04:01:05Z")

</div>

Do you mean you want to cluster the two ES nodes together?

---

<div class="post-metadata">

### Author: ![Santhosh\_Devadiga](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@Santhosh\_Devadiga](https://discuss.elastic.co/u/Santhosh_Devadiga)
#### Post date: [May 8, 2017, 7:22am UTC](https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653/3 "2017-05-08T07:22:44Z")

</div>

Yes, same cluster with two different nodes on the different machine under same network (Load balancing server).

---

<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 5, 2017, 7:33am UTC](https://discuss.elastic.co/t/how-to-configure-two-app-server-nodes-to-connect-to-same-elasticsearch-cluster/84653/4 "2017-06-05T07:33:45Z")

</div>

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