# Prioritize an host over the others

**URL:** <https://discuss.elastic.co/t/prioritize-an-host-over-the-others/192623>\
**Category:** Logstash\
**Created:** [July 29, 2019, 7:31am UTC](https://discuss.elastic.co/t/prioritize-an-host-over-the-others/192623 "2019-07-29T07:31:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nonow53](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nonow53/32/81767_2.png) [@Nonow53](https://discuss.elastic.co/u/Nonow53)\
**Post date:** [July 29, 2019, 7:31am UTC](https://discuss.elastic.co/t/prioritize-an-host-over-the-others/192623/1 "2019-07-29T07:31:37Z")

</div>

Hello,

When I define a multiple hosts list in the elasticsearch output plugin, is it possible to prioritize one host over the others ?  
Can I affect a weight in order to redistribute essentially to one specific node and send requests on other nodes only when this node is down ?

---

<div class="post-metadata">

**Author:** ![Darshan\_Parab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darshan_parab/32/51098_2.png) [@Darshan\_Parab](https://discuss.elastic.co/u/Darshan_Parab)\
**Post date:** [July 29, 2019, 7:41am UTC](https://discuss.elastic.co/t/prioritize-an-host-over-the-others/192623/2 "2019-07-29T07:41:03Z")

</div>

I don't think that is possible. By default all nodes in same cluster will be active and data will be distributed on the shards which will spread across the nodes in the cluster. However you may want to look at "Routing" configurations. Refer to [this](https://www.elastic.co/blog/customizing-your-document-routing) blogpost.

---

<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:** [August 26, 2019, 7:41am UTC](https://discuss.elastic.co/t/prioritize-an-host-over-the-others/192623/3 "2019-08-26T07:41:08Z")

</div>

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