# What if "query node" or the "gateway query node" fail in cluster having n nodes?

**URL:** https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204
**Category:** Elasticsearch
**Created:** [June 21, 2017, 6:54am UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204 "2017-06-21T06:54:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sameer\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameer_sharma/32/19102_2.png) [@Sameer\_Sharma](https://discuss.elastic.co/u/Sameer_Sharma)
#### Post date: [June 21, 2017, 6:54am UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/1 "2017-06-21T06:54:17Z")

</div>

I have setup where i have 5 node and i want to fetch the data from one single cluster url. As of now what i have read and used is to query multiple nodes with multiple api url's.

use case:

Node1 : Url1  
Node2 : Url2  
Node3 : Url3  
Node4 : Url4  
Node5 : Url5

Cluster name : elasticprod

1. What if the Url1 configured in my application to access elastic hot the node that i.e "query node" or the "gateway query node" goes down?
2. Is it necessary to use a load balancer for an Elasticsearch cluster?

I can access each of the node with their respective url but do we have single url to connect and fetch data from elasticprod (which is my cluster name).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 21, 2017, 1:01pm UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/2 "2017-06-21T13:01:37Z")

</div>

A client can normally deal with that. You can use an elasticsearch coordinating only node in front if you wish. Or a load balancer.

---

<div class="post-metadata">

### Author: ![Sameer\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameer_sharma/32/19102_2.png) [@Sameer\_Sharma](https://discuss.elastic.co/u/Sameer_Sharma)
#### Post date: [June 21, 2017, 1:46pm UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/3 "2017-06-21T13:46:59Z")

</div>

@David: i don't want to use load balance.  
In my case if node url1 on which i am sending my request went down. than my application will not get any response even if the remaining 4 nodes are up and running.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 21, 2017, 4:10pm UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/4 "2017-06-21T16:10:34Z")

</div>

Yes. Your client should know that and switch to the other nodes while marking this one as non working.

---

<div class="post-metadata">

### Author: ![Sameer\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sameer_sharma/32/19102_2.png) [@Sameer\_Sharma](https://discuss.elastic.co/u/Sameer_Sharma)
#### Post date: [June 22, 2017, 7:49am UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/5 "2017-06-22T07:49:49Z")

</div>

@dadoonet So, is there any way to make client aware about node status in elastic cluster without using load balancer. I don't want to made this thing happen from web application to switch the other node if one goes down to get the data.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 22, 2017, 10:29pm UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/6 "2017-06-22T22:29:31Z")

</div>

A client (well it depends on the client I guess) does that normally out of the box.  
What did you try so far and what is the problem you are seeing actually?

---

<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: [July 20, 2017, 10:29pm UTC](https://discuss.elastic.co/t/what-if-query-node-or-the-gateway-query-node-fail-in-cluster-having-n-nodes/90204/7 "2017-07-20T22:29:40Z")

</div>

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