# How to Calling 3 node elastic-search cluster url from application

**URL:** <https://discuss.elastic.co/t/how-to-calling-3-node-elastic-search-cluster-url-from-application/179957>\
**Category:** Elasticsearch\
**Created:** [May 7, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-calling-3-node-elastic-search-cluster-url-from-application/179957 "2019-05-07T11:49:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [May 7, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-calling-3-node-elastic-search-cluster-url-from-application/179957/1 "2019-05-07T11:49:38Z")

</div>

Hi,

We have 2+1 Elastic search Clustering setup on windows server.  
we need to know which URL should we call in our application to have a proper Fail over.

if one node is down how the application identify that and switch to other node which is running under the cluster.

configuration as below.

Elastic URL :-  
[http://192.168.129.105:9200/](http://192.168.129.105:9200/) :- Node1  
[http://192.168.129.125:9200/](http://192.168.129.125:9200/) :- Node2  
[http://192.168.129.168:9200/](http://192.168.129.168:9200/) :- Node3

**Node1:-**

bootstrap.memory\_lock: true  
cluster.name: elasticsearch  
discovery.zen.ping.unicast.hosts:

- [AX-MGMTSERVER1.bangalore.arcadix.com](http://AX-MGMTSERVER1.bangalore.arcadix.com)
- [AX-MGMTSERVER2.bangalore.arcadix.com](http://AX-MGMTSERVER2.bangalore.arcadix.com)
- [AX-MGMTSERVER3.bangalore.arcadix.com](http://AX-MGMTSERVER3.bangalore.arcadix.com)  
discovery.zen.minimum\_master\_nodes: 2  
http.port: 9200  
network.host: _site_  
node.data: true  
node.master: true  
node.max\_local\_storage\_nodes: 3  
node.name: AX-MGMTSERVER1  
path.data: G:\Elastic\_Search\_Data\Data  
path.logs: G:\Elastic\_Search\_Data\Logs  
transport.tcp.port: 9300  
xpack.license.self\_generated.type: basic  
xpack.security.enabled: false

**Node2**

bootstrap.memory\_lock: true  
cluster.name: elasticsearch  
discovery.zen.ping.unicast.hosts:

- [AX-MGMTSERVER2.bangalore.arcadix.com](http://AX-MGMTSERVER2.bangalore.arcadix.com)
- [AX-MGMTSERVER1.bangalore.arcadix.com](http://AX-MGMTSERVER1.bangalore.arcadix.com)
- [AX-MGMTSERVER3.bangalore.arcadix.com](http://AX-MGMTSERVER3.bangalore.arcadix.com)  
discovery.zen.minimum\_master\_nodes: 2  
http.port: 9200  
network.host: _site_  
node.data: true  
node.master: true  
node.max\_local\_storage\_nodes: 3  
node.name: AX-MGMTSERVER1  
path.data: G:\Elastic\_Search\_Data\Data  
path.logs: G:\Elastic\_Search\_Data\Logs  
transport.tcp.port: 9300  
xpack.license.self\_generated.type: basic  
xpack.security.enabled: false

**Node3**

bootstrap.memory\_lock: true  
cluster.name: elasticsearch  
discovery.zen.ping.unicast.hosts:

- [AX-MGMTSERVER3.bangalore.arcadix.com](http://AX-MGMTSERVER3.bangalore.arcadix.com)
- [AX-MGMTSERVER2.bangalore.arcadix.com](http://AX-MGMTSERVER2.bangalore.arcadix.com)
- [AX-MGMTSERVER1.bangalore.arcadix.com](http://AX-MGMTSERVER1.bangalore.arcadix.com)  
discovery.zen.minimum\_master\_nodes: 2  
http.port: 9200  
network.host: _site_  
node.data: true  
node.max\_local\_storage\_nodes: 3  
node.name: AX-MGMTSERVER3  
path.data: G:\Elastic\_Search\_Data\Data  
path.logs: G:\Elastic\_Search\_Data\Logs  
transport.tcp.port: 9300  
xpack.license.self\_generated.type: basic  
xpack.security.enabled: false

Configuration method :- 2+1 master Nodes 2 and DATA Node 3 , with out Split brain.

below is the Cluster state Report,

{  
"cluster\_name" : "elasticsearch",  
"compressed\_size\_in\_bytes" : 564323,  
"cluster\_uuid" : "fyYJ1acIQ0O2moijGff7gw",  
"version" : 22417,  
"state\_uuid" : "0gj2a42AQHK5earZmmNeGA",  
"master\_node" : "J6oTRKn2Rc28QEDzvru62g",  
"blocks" : { },  
"nodes" : {  
"4Jd4U8qcQEers8K8k8BzfA" : {  
"name" : "AX-MGMTSERVER1",  
"ephemeral\_id" : "9QxWNu8rQLSM30dTtOwfbQ",  
"transport\_address" : "192.168.129.125:9300",  
"attributes" : {  
"ml.machine\_memory" : "68673888256",  
"ml.max\_open\_jobs" : "20",  
"xpack.installed" : "true",  
"ml.enabled" : "true"  
}  
},  
"J6oTRKn2Rc28QEDzvru62g" : {  
"name" : "AX-MGMTSERVER1",  
"ephemeral\_id" : "BAk49gjcTTmxvCEWBC1fPQ",  
"transport\_address" : "192.168.129.105:9300",  
"attributes" : {  
"ml.machine\_memory" : "55788986368",  
"ml.max\_open\_jobs" : "20",  
"xpack.installed" : "true",  
"ml.enabled" : "true"  
}  
},  
"deFjiZT7QOyBHshZdBSg5Q" : {  
"name" : "AX-MGMTSERVER3",  
"ephemeral\_id" : "Fj8-x33RQvy9xQUokiMV1A",  
"transport\_address" : "192.168.129.168:9300",  
"attributes" : {  
"ml.machine\_memory" : "67844472832",  
"ml.max\_open\_jobs" : "20",  
"xpack.installed" : "true",  
"ml.enabled" : "true"  
}  
}

![Cluster%20State%20Report](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7ea25b6126e5f04e4088cdfb1834c6d80252eda8.jpeg)

Regards  
Sateesh TV

---

<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 4, 2019, 11:49am UTC](https://discuss.elastic.co/t/how-to-calling-3-node-elastic-search-cluster-url-from-application/179957/2 "2019-06-04T11:49:38Z")

</div>

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