# How is ES data distributed in each data nodes

**URL:** <https://discuss.elastic.co/t/how-is-es-data-distributed-in-each-data-nodes/272079>\
**Category:** Elasticsearch\
**Created:** [May 4, 2021, 2:37pm UTC](https://discuss.elastic.co/t/how-is-es-data-distributed-in-each-data-nodes/272079 "2021-05-04T14:37:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [May 4, 2021, 2:37pm UTC](https://discuss.elastic.co/t/how-is-es-data-distributed-in-each-data-nodes/272079/1 "2021-05-04T14:37:07Z")

</div>

Hi,  
I am using Elasticsearch 7.8.0 in k8s environment. I have 20 ES ingest nodes for serving traffic, 25 data nodes , 3 master nodes. How is the data stored getting distributed across all ES data nodes because I see on some of the data nodes data stored is ununiform.  
Example- In some data nodes it has stored upto 175GB. But in some data nodes it has stored some MB.

```auto
ingest pod -
pod limit, request: 30Gb
cpu - 1
 -Xms15g -Xmx15g
data pod -
pod limit, request: 30Gb
 cpu - 1
 -Xms15g -Xmx15g
master pod -
pod limit, request - 2Gb
cpu - 1
 -Xms1g -Xmx1g

```

```auto
shards disk.indices disk.used disk.avail disk.total disk.percent node          
    45 8.4gb 8.5gb 1.1tb 1.1tb 0 elasticsearch-data-18
    45 67gb 67.1gb 1tb 1.1tb 5 elasticsearch-data-9
    45 687.8mb 784.5mb 1.1tb 1.1tb 0 elasticsearch-data-10
    45 91.4gb 91.8gb 1tb 1.1tb 7 elasticsearch-data-21
     5 115.4gb 161.7gb 1tb 1.1tb 13 elasticsearch-data-12
    45 1.1gb 1.2gb 1.1tb 1.1tb 0 elasticsearch-data-0
    45 117.7gb 175.7gb 1013.1gb 1.1tb 14 elasticsearch-data-13
    45 158.7gb 159gb 1tb 1.1tb 13 elasticsearch-data-17
    45 1.2gb 1.3gb 1.1tb 1.1tb 0 elasticsearch-data-20
    45 1gb 3.6gb 1.1tb 1.1tb 0 elasticsearch-data-11
    44 127.5gb 127.6gb 1tb 1.1tb 10 elasticsearch-data-16
    45 15.5gb 15.9gb 1.1tb 1.1tb 1 elasticsearch-data-15
    45 1.9gb 2gb 1.1tb 1.1tb 0 elasticsearch-data-1
    45 9.1gb 9.2gb 1.1tb 1.1tb 0 elasticsearch-data-19
    45 2.3gb 2.4gb 1.1tb 1.1tb 0 elasticsearch-data-3
    32 36.8gb 36.9gb 1.1tb 1.1tb 3 elasticsearch-data-24
     2 10.7gb 17gb 1.1tb 1.1tb 1 elasticsearch-data-14
    45 58.9gb 59.2gb 1.1tb 1.1tb 4 elasticsearch-data-4
    45 74.5gb 139.3gb 1tb 1.1tb 11 elasticsearch-data-6
    45 12gb 12.1gb 1.1tb 1.1tb 1 elasticsearch-data-5
    45 665.5mb 762.3mb 1.1tb 1.1tb 0 elasticsearch-data-8
    45 11.7gb 11.8gb 1.1tb 1.1tb 0 elasticsearch-data-7
    45 1.3gb 1.4gb 1.1tb 1.1tb 0 elasticsearch-data-23
    45 8gb 8gb 1.1tb 1.1tb 0 elasticsearch-data-2
    73 UNASSIGNED

```

---

<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:** [May 5, 2021, 9:57am UTC](https://discuss.elastic.co/t/how-is-es-data-distributed-in-each-data-nodes/272079/2 "2021-05-05T09:57:56Z")

</div>

Elasticsearch balances by shard count, which you can see is pretty even for the most part.

You do have some anomalies though, such as those nodes with only a few shards. What does your elasticsearch.yml look like?

---

<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:** [June 2, 2021, 9:58am UTC](https://discuss.elastic.co/t/how-is-es-data-distributed-in-each-data-nodes/272079/3 "2021-06-02T09:58:36Z")

</div>

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