# Order of endpoints provided in the elasticsearch.hosts parameter

**URL:** <https://discuss.elastic.co/t/order-of-endpoints-provided-in-the-elasticsearch-hosts-parameter/220662>\
**Category:** Kibana\
**Created:** [February 24, 2020, 1:26pm UTC](https://discuss.elastic.co/t/order-of-endpoints-provided-in-the-elasticsearch-hosts-parameter/220662 "2020-02-24T13:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcanas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lcanas/32/14900_2.png) [@lcanas](https://discuss.elastic.co/u/lcanas)\
**Post date:** [February 24, 2020, 1:26pm UTC](https://discuss.elastic.co/t/order-of-endpoints-provided-in-the-elasticsearch-hosts-parameter/220662/1 "2020-02-24T13:26:28Z")

</div>

Hi all,

in order to have high availability in a small cluster we are deploying two nodes with Kibana in front of a 3 master/data nodes ES cluster. My plan is to add the three of them to the `elasticsearch.hosts` parameter in Kibana. In order to avoid hitting the same node with the two Kibanas I'm thinking about providing the three nodes in different order to the Kibanas.

So, having C1,C2 and C3 as data/master nodes of the cluster I would set up the Kibanas like this:

- Kibana 1 -\> elasticsearch.hosts: C1, C2, C3
- Kibana 2 -\> elasticsearch.hosts: C3, C2, C1

I've read at [https://www.elastic.co/guide/en/kibana/6.8/production.html](https://www.elastic.co/guide/en/kibana/6.8/production.html) the following statement: ".. Requests to available hosts will be routed in a round robin fashion". I wonder whether this round robin solution uses the list of hosts in the same order it is provided to Kibana.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [March 18, 2020, 7:09pm UTC](https://discuss.elastic.co/t/order-of-endpoints-provided-in-the-elasticsearch-hosts-parameter/220662/2 "2020-03-18T19:09:35Z")

</div>

@lcanas the round robin we use starts on the first element of the array and rans according the order. So yes, you can use it.

---

<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:** [April 15, 2020, 7:09pm UTC](https://discuss.elastic.co/t/order-of-endpoints-provided-in-the-elasticsearch-hosts-parameter/220662/3 "2020-04-15T19:09:40Z")

</div>

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