# Elasticsearch cluster uneven distribution of data

**URL:** https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737
**Category:** Elasticsearch
**Created:** [September 7, 2020, 9:06am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737 "2020-09-07T09:06:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)
#### Post date: [September 7, 2020, 9:06am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/1 "2020-09-07T09:06:46Z")

</div>

Dears,

How to explain uneven distribution of data between cluster nodes?

```auto
GET _cat/allocation?v&pretty
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
    63 375gb 375.3gb 648.1gb 1023.4gb 36 10.100.10.13 10.100.10.13 elastic_03
    64 343.1gb 343.9gb 679.5gb 1023.4gb 33 10.100.10.12 10.100.10.12 elastic_02
    63 268.5gb 269.2gb 754.2gb 1023.4gb 26 10.100.10.11 10.100.10.11 elastic_01

```

Each nodes have 1TB for data.

Any idea?

Best Regards,  
Dan

---

<div class="post-metadata">

### Author: ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)
#### Post date: [September 7, 2020, 10:20am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/2 "2020-09-07T10:20:17Z")

</div>

I did some deeper annalise and I guess/suppose that this cluster is optimized for number of shares instead of disk usage. Is there any simple way to change it?

---

<div class="post-metadata">

### Author: ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)
#### Post date: [September 7, 2020, 10:25am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/3 "2020-09-07T10:25:31Z")

</div>

It balances based on shard count and there is no way to change it ☹

---

<div class="post-metadata">

### Author: ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)
#### Post date: [September 7, 2020, 10:35am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/4 "2020-09-07T10:35:30Z")

</div>

> [@Steve\_Mushero](#):
>
> It balances based on shard count and there is no way to change it

Steve,

Do I good understand you? Is this only one way " balances based on shard" and no other option?

Thanks

d

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [September 7, 2020, 1:00pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/5 "2020-09-07T13:00:27Z")

</div>

That's correct, and this is deliberate. Balancing by size is expensive and unnecessary. All your nodes have ample free space, so why does anything need to be done differently?

---

<div class="post-metadata">

### Author: ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)
#### Post date: [September 7, 2020, 1:11pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/6 "2020-09-07T13:11:09Z")

</div>

OK, I understand. Thanks a lot.

---

<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 5, 2020, 1:11pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-uneven-distribution-of-data/247737/7 "2020-10-05T13:11:18Z")

</div>

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