# Data nodes being ignored by ES cluster for shard allocation

**URL:** <https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747>\
**Category:** Elasticsearch\
**Created:** [December 5, 2019, 4:39pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747 "2019-12-05T16:39:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![viniciof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viniciof/32/53454_2.png) [@viniciof](https://discuss.elastic.co/u/viniciof)\
**Post date:** [December 5, 2019, 4:39pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/1 "2019-12-05T16:39:19Z")

</div>

Hi everyone,

I have two nodes with very little number of shards allocated there, distribution across the cluster is skewed due to these two nodes.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/1/51ce260409780cf8e454152ad2e03c1b972bc97e.png)

I checked and there's far enough disk space in each and also their IPs are not excluded in cluster settings.

How can I find out what's going on ? every reallocation seem to be going to different nodes and never to these ones

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 5, 2019, 4:49pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/2 "2019-12-05T16:49:14Z")

</div>

Are all nodes in the cluster running exactly the same version of Elasticsearch?

---

<div class="post-metadata">

**Author:** ![viniciof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viniciof/32/53454_2.png) [@viniciof](https://discuss.elastic.co/u/viniciof)\
**Post date:** [December 5, 2019, 4:49pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/3 "2019-12-05T16:49:44Z")

</div>

yes they're all running 5.6.2

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [December 5, 2019, 7:52pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/4 "2019-12-05T19:52:31Z")

</div>

I run into this every so often and I diagnose it by trying to manually reroute a shard using the [cluster reroute API](https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html) and the `explain` parameter set. Way at the bottom of the response JSON, you might see the reason.

---

<div class="post-metadata">

**Author:** ![viniciof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viniciof/32/53454_2.png) [@viniciof](https://discuss.elastic.co/u/viniciof)\
**Post date:** [December 5, 2019, 8:35pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/5 "2019-12-05T20:35:45Z")

</div>

Just recalled that I'm using hot/warm architecture and those nodes are marked as "warm". As soon as I changed them to "hot" shards are now being allocated there

Thanks for the help!

---

<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:** [January 2, 2020, 8:35pm UTC](https://discuss.elastic.co/t/data-nodes-being-ignored-by-es-cluster-for-shard-allocation/210747/6 "2020-01-02T20:35:47Z")

</div>

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