# Does roles assigned to nodes affect the disk rebalancing?

**URL:** <https://discuss.elastic.co/t/does-roles-assigned-to-nodes-affect-the-disk-rebalancing/373215>\
**Category:** Elasticsearch\
**Created:** [January 15, 2025, 5:15am UTC](https://discuss.elastic.co/t/does-roles-assigned-to-nodes-affect-the-disk-rebalancing/373215 "2025-01-15T05:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike123](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mike123](https://discuss.elastic.co/u/mike123)\
**Post date:** [January 15, 2025, 5:15am UTC](https://discuss.elastic.co/t/does-roles-assigned-to-nodes-affect-the-disk-rebalancing/373215/1 "2025-01-15T05:15:35Z")

</div>

I have 10 data nodes of which 3 have additional ML and transform role to it. I could observe that almost all the primary shards are assigned to nodes with ml role assigned to it. And replicas are distributed. This is causing disk full issues and ES is not able to rebalance. Does node roles affect shard allocation.  
PS: all nodes have "data" role assigned to it

---

<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:** [January 15, 2025, 6:26am UTC](https://discuss.elastic.co/t/does-roles-assigned-to-nodes-affect-the-disk-rebalancing/373215/2 "2025-01-15T06:26:36Z")

</div>

Do all data nodes in the cluster have the same amount of disk space?

Are all nodes running exactly the same version of Elasticsearch?

---

<div class="post-metadata">

**Author:** ![mike123](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mike123](https://discuss.elastic.co/u/mike123)\
**Post date:** [January 15, 2025, 9:10am UTC](https://discuss.elastic.co/t/does-roles-assigned-to-nodes-affect-the-disk-rebalancing/373215/3 "2025-01-15T09:10:20Z")

</div>

yes all nodes have same disk capacity and all are running in same version(8.15.1).
