# It is a good idea to implement Ha Proxy in front of Elasticsearch 7?

**URL:** <https://discuss.elastic.co/t/it-is-a-good-idea-to-implement-ha-proxy-in-front-of-elasticsearch-7/285133>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 25, 2021, 12:25pm UTC](https://discuss.elastic.co/t/it-is-a-good-idea-to-implement-ha-proxy-in-front-of-elasticsearch-7/285133 "2021-09-25T12:25:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanpl](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jeanpl](https://discuss.elastic.co/u/jeanpl)\
**Post date:** [September 25, 2021, 12:25pm UTC](https://discuss.elastic.co/t/it-is-a-good-idea-to-implement-ha-proxy-in-front-of-elasticsearch-7/285133/1 "2021-09-25T12:25:18Z")

</div>

From my understanding, adding HaProxy on top of Elasticsearch might bring some High Availability, and Load Balancing. Moreover, it is also possible to communicate a single entry point URL (the Ha Proxy host endpoint), for every users/developers who want to work with ES.

However, the result is that the Elasticsearch driver is unable to resolve/discover the network topology by itself, and is unable to connect directly to the data nodes.

Additionnally, regarding, es-hadoop, you need to set **es.nodes.wan.only** to **true** with Ha Proxy. And the documentation say about it :

> **es.nodes.wan.only** (default : **false** )  
> If true, the connector disables discovery and only connects through the declared es.nodes during all operations, including reads and writes. Note that in this mode, **performance is highly affected**.

Could you please clarify, if Ha Proxy on top of Elasticsearch is a good practice **(or not)**?

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [September 27, 2021, 12:03am UTC](https://discuss.elastic.co/t/it-is-a-good-idea-to-implement-ha-proxy-in-front-of-elasticsearch-7/285133/2 "2021-09-27T00:03:36Z")

</div>

Not using HA Proxy, but instead NGINX and have no problems with that and Elasticsearch.

---

<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 25, 2021, 12:04am UTC](https://discuss.elastic.co/t/it-is-a-good-idea-to-implement-ha-proxy-in-front-of-elasticsearch-7/285133/3 "2021-10-25T00:04:20Z")

</div>

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