# AWS Load Balancer for Elasticsearch Cluster

**URL:** <https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565>\
**Category:** Elasticsearch\
**Created:** [September 14, 2017, 2:57pm UTC](https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565 "2017-09-14T14:57:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby259](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bobby259](https://discuss.elastic.co/u/bobby259)\
**Post date:** [September 14, 2017, 2:57pm UTC](https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565/1 "2017-09-14T14:57:40Z")

</div>

I have a 3 Master and 4 Data node cluster running on EC2 instances. I want to set-up a Load Balancer infront of my master nodes. While I try doing so, the application load balancer is failing to register the health of master nodes. The ping path I used for healthcheck is /\_cluster/health on port 9200 and the target registration with status "unhealthy". The cluster is healthy. Is the ping path for healthcheck that I am using is correct? Please help.

---

<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:49pm UTC](https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565/2 "2017-09-14T22:49:38Z")

</div>

This is weird ... I checked against my cluster and that path definitely works.

```bash
$> curl -s -w "%{http_code}" -o /dev/null localhost:9200/_cluster/health/
200

```

Any chance of a screenshot of the ELB HealthCheck section?

---

<div class="post-metadata">

**Author:** ![Nikolay\_Klimchuk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolay_klimchuk/32/2131_2.png) [@Nikolay\_Klimchuk](https://discuss.elastic.co/u/Nikolay_Klimchuk)\
**Post date:** [October 7, 2017, 11:05pm UTC](https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565/3 "2017-10-07T23:05:36Z")

</div>

Can I ask why you put Load Balancer infront of master nodes? Why not data 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:** [November 4, 2017, 11:05pm UTC](https://discuss.elastic.co/t/aws-load-balancer-for-elasticsearch-cluster/100565/4 "2017-11-04T23:05:50Z")

</div>

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