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

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/ :- Node1
http://192.168.129.125:9200/ :- Node2
http://192.168.129.168:9200/ :- Node3

Node1:-

bootstrap.memory_lock: true
cluster.name: elasticsearch
discovery.zen.ping.unicast.hosts:

Node2

bootstrap.memory_lock: true
cluster.name: elasticsearch
discovery.zen.ping.unicast.hosts:

Node3

bootstrap.memory_lock: true
cluster.name: elasticsearch
discovery.zen.ping.unicast.hosts:

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

Regards
Sateesh TV

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