# Configuration round robin for elasticseach

**URL:** <https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815>\
**Category:** Elasticsearch\
**Created:** [May 20, 2019, 12:44pm UTC](https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815 "2019-05-20T12:44:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [May 20, 2019, 12:44pm UTC](https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815/1 "2019-05-20T12:44:29Z")

</div>

Hello,  
I have some questions about the output configuration of winlogbeat.

Today, I have this for a windows server :

> output.elasticsearch:  
> hosts: ["serverA:9200"]

I want to add another server in case of failure of serverA :

> output.elasticsearch:  
> hosts: ["serverA:9200", "serverB:9200"]

[According to the doc](https://www.elastic.co/guide/en/beats/winlogbeat/current/elasticsearch-output.html), it's a round robin mode, so if serverA is up, all datas will be sent to him, and if he's down, the data are sent to serverB.

But if serverA and serverB are in the same cluster, is it working ? No problem with that ?  
Today, my configuration is serverA as a central point to host the data (it's a data node) and serverB is another data node in the same cluster.

So the data are replicated in this way : serverA =\> serverB

If server A is down, is serverB ships data to serverA when this one is up again ?

Thank you for your answers.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 21, 2019, 8:14pm UTC](https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815/2 "2019-05-21T20:14:24Z")

</div>

> [@Ludovic9](#):
>
> round robin mode

That means it will send to one serverA and then serverB, then repeat.

> [@Ludovic9](#):
>
> If server A is down, is serverB ships data to serverA when this one is up again ?

As long as you have replicas and as long as they form a cluster again, yes.

---

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [May 24, 2019, 3:18pm UTC](https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815/3 "2019-05-24T15:18:42Z")

</div>

Thank you for your answer.

It works very well, I have done a test by stopping elasticsearch on serverA, the health of the cluster is yellow but it's normal, and I see the data shipped to serverB.

---

<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:** [June 21, 2019, 3:18pm UTC](https://discuss.elastic.co/t/configuration-round-robin-for-elasticseach/181815/4 "2019-06-21T15:18:46Z")

</div>

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