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:
- AX-MGMTSERVER1.bangalore.arcadix.com
- AX-MGMTSERVER2.bangalore.arcadix.com
-
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
- AX-MGMTSERVER1.bangalore.arcadix.com
-
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
- AX-MGMTSERVER2.bangalore.arcadix.com
-
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"
}
}
Regards
Sateesh TV