# Can es shards allocate to nodes based on disk capacity？

**URL:** <https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096>\
**Category:** Elasticsearch\
**Created:** [September 10, 2020, 2:31am UTC](https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096 "2020-09-10T02:31:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taidengpub](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taidengpub/32/75088_2.png) [@taidengpub](https://discuss.elastic.co/u/taidengpub)\
**Post date:** [September 10, 2020, 2:31am UTC](https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096/1 "2020-09-10T02:31:45Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/7.8/modules-cluster.html#cluster-shard-allocation-settings](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/modules-cluster.html#cluster-shard-allocation-settings)  
es doc said `cluster.routing.allocation.disk.threshold_enabled` can control shard allocate when some node has low disk watermark.  
but my question is can es allocate shards based on disk capacity Evenly distributed？？  
my problem now is one node in the cluster has only 1T disk，while other nodes has 5T each，how can data allocate Evenly

---

<div class="post-metadata">

**Author:** ![taidengpub](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taidengpub/32/75088_2.png) [@taidengpub](https://discuss.elastic.co/u/taidengpub)\
**Post date:** [September 10, 2020, 3:07am UTC](https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096/2 "2020-09-10T03:07:13Z")

</div>

anybody help me?

---

<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:** [September 10, 2020, 3:25am UTC](https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096/3 "2020-09-10T03:25:20Z")

</div>

Allocation is done by shard count, not disk size.

> [@taidengpub](#):
>
> anybody help me?

Yes, please be patient though 🙂

---

<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:** [October 8, 2020, 3:25am UTC](https://discuss.elastic.co/t/can-es-shards-allocate-to-nodes-based-on-disk-capacity/248096/4 "2020-10-08T03:25:35Z")

</div>

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