# Where to send requests in a cluster

**URL:** <https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478>\
**Category:** Elasticsearch\
**Created:** [September 14, 2017, 7:51am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478 "2017-09-14T07:51:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Kosgei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_kosgei/32/19950_2.png) [@Jonathan\_Kosgei](https://discuss.elastic.co/u/Jonathan_Kosgei)\
**Post date:** [September 14, 2017, 7:51am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/1 "2017-09-14T07:51:13Z")

</div>

We have the following cluster setup;  
3 masters  
2 client nodes  
1 ingest node  
1 data node

Each group of nodes has a dns loadbalancer infront of them.

The question is, where do I point to in my applicatons?

Do I do this only to the client requests because they have http enabled or do I create a loadbalancer infront of all the above services? Would that work?

---

<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:** [September 14, 2017, 8:32am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/2 "2017-09-14T08:32:23Z")

</div>

Dedicated master nodes are usually used to improve resiliency and provide HA. That is however kind of pointless if you only have a single data node as that becomes a single point of failure. I would recommend either adding data nodes or simplifying your cluster topology. Just because you can have dedicated node types does not mean you should.

---

<div class="post-metadata">

**Author:** ![merqurio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/merqurio/32/22099_2.png) [@merqurio](https://discuss.elastic.co/u/merqurio)\
**Post date:** [September 14, 2017, 9:01am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/3 "2017-09-14T09:01:11Z")

</div>

Thanks @Christian_Dahlqvist, there are actually 3 data nodes, it's a typo. What topology would you recommend for production when every app is logging to elastic and there are a couple of http API exposed directly from elastic ?

Thanks again !

---

<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:** [September 14, 2017, 9:06am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/4 "2017-09-14T09:06:34Z")

</div>

For most logging use cases, dedicated client nodes are necessarily required at all. Requests can usually be routed directly to the data nodes (maybe also ingest nodes). Do not send any traffic to the dedicated master nodes.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Kosgei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_kosgei/32/19950_2.png) [@Jonathan\_Kosgei](https://discuss.elastic.co/u/Jonathan_Kosgei)\
**Post date:** [September 14, 2017, 9:46am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/5 "2017-09-14T09:46:42Z")

</div>

Can traffic be sent to the data & ingest nodes even where node.http is explicitly disabled on them?

---

<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:** [September 14, 2017, 9:59am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/6 "2017-09-14T09:59:24Z")

</div>

Not unless you are using the transport protocol.

---

<div class="post-metadata">

**Author:** ![mujtabahussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mujtabahussain/32/17514_2.png) [@mujtabahussain](https://discuss.elastic.co/u/mujtabahussain)\
**Post date:** [September 14, 2017, 10:34am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/7 "2017-09-14T10:34:17Z")

</div>

> [@Jonathan\_Kosgei](#):
>
> Each group of nodes has a dns loadbalancer infront of them.

I am curious about this setting. Why is a LB in front of each group required?

---

<div class="post-metadata">

**Author:** ![merqurio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/merqurio/32/22099_2.png) [@merqurio](https://discuss.elastic.co/u/merqurio)\
**Post date:** [September 14, 2017, 10:53am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/8 "2017-09-14T10:53:12Z")

</div>

Not really required, we are using Kubernetes and we are using a [kubernetes service](https://kubernetes.io/docs/concepts/services-networking/service/) in front of each group. I'm open to suggestions if you think other configurations have more sense

---

<div class="post-metadata">

**Author:** ![mujtabahussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mujtabahussain/32/17514_2.png) [@mujtabahussain](https://discuss.elastic.co/u/mujtabahussain)\
**Post date:** [September 14, 2017, 11:50am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/9 "2017-09-14T11:50:51Z")

</div>

I was just curious that's all. Usually the nodes communicate and distribute load amongst each other so well, that you can just chuck a LB in front of all of them.

The simplest one I have seen is

(KIbana Node) -\> LB -\> Subnet of (Master Nodes .... Data Nodes .... Consumer Nodes)

---

<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:** [October 12, 2017, 11:50am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478/10 "2017-10-12T11:50:58Z")

</div>

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