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

**URL:** https://discuss.elastic.co/t/how-2-node-elastic-cluster-will-failover-to-secondary-node-if-the-primary-node-fails/285919
**Category:** Elasticsearch
**Created:** [October 5, 2021, 12:49pm UTC](https://discuss.elastic.co/t/how-2-node-elastic-cluster-will-failover-to-secondary-node-if-the-primary-node-fails/285919 "2021-10-05T12:49:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Arcadix](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Arcadix](https://discuss.elastic.co/u/Arcadix)
#### Post date: [October 5, 2021, 12:49pm UTC](https://discuss.elastic.co/t/how-2-node-elastic-cluster-will-failover-to-secondary-node-if-the-primary-node-fails/285919/1 "2021-10-05T12:49:12Z")

</div>

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](http://AX-APP19.arcadix.com)
- [AX-APP20.arcadix.com](http://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

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [October 5, 2021, 12:57pm UTC](https://discuss.elastic.co/t/how-2-node-elastic-cluster-will-failover-to-secondary-node-if-the-primary-node-fails/285919/2 "2021-10-05T12:57:46Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/high-availability-cluster-small-clusters.html) for a more in-depth explanation.

---

<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: [November 2, 2021, 12:58pm UTC](https://discuss.elastic.co/t/how-2-node-elastic-cluster-will-failover-to-secondary-node-if-the-primary-node-fails/285919/3 "2021-11-02T12:58:28Z")

</div>

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