How 2 node elastic cluster will failover to secondary node if the primary node fails

Hi,

We have 1+1 Elasticsearch Clustering setup on windows server.
we need to know which Elastic node URL should 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.

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

  • AX-APP19.arcadix.com
  • AX-APP20.arcadix.com
    http.port: 9200
    network.host: site
    node.data: true
    node.ingest: true
    node.master: true
    node.max_local_storage_nodes: 1
    node.name: AX-APP20
    path.data: E:\Elastic_Data\Data
    path.logs: E:\Elastic_Data\Logs
    transport.tcp.port: 9300

Regards
Sateesh TV

In order to have a highly available cluster thT can be fully functional if one node is lost you need a minimum of 3 master eligible nodes. Having 2 is not sufficient. Please see the docs for a more in-depth explanation.

1 Like