# Uneven shard size after reindex

**URL:** <https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986>\
**Category:** Elasticsearch\
**Created:** [June 29, 2018, 2:34pm UTC](https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986 "2018-06-29T14:34:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauro\_Julian\_Fernand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mauro_julian_fernand/32/79805_2.png) [@Mauro\_Julian\_Fernand](https://discuss.elastic.co/u/Mauro_Julian_Fernand)\
**Post date:** [June 29, 2018, 2:34pm UTC](https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986/1 "2018-06-29T14:34:14Z")

</div>

I left ES reindexing 30 indices to 1 with 8 shards, and when seeing the shard stats when I came to work today I see this:

```
GET _cat/shards/graylog_0-30?v&s=shard&h=shard,store,node
shard store node
0 41.4gb node0
1 9.8gb node5
2 97.1mb node2
3 96.3mb node4
4 41.4gb node3
5 9.8gb node1
6 95.8mb node6
7 97.5mb node7

```

Why is ES reindexing in such an uneven way to the shards?

This is what I executed, nothing special, and I created the index manually beforehand:

```
POST _reindex?wait_for_completion=false
{
  "source": {
    "index": ["graylog_0s","graylog_1s","graylog_2s","graylog_3s","graylog_4s","graylog_5s","graylog_6s","graylog_7s","graylog_8s","graylog_9s","graylog_10s","graylog_11s","graylog_12s","graylog_13s","graylog_14s","graylog_15s","graylog_16s","graylog_17s","graylog_18s","graylog_19s","graylog_20s","graylog_21s","graylog_22s","graylog_23s","graylog_24s","graylog_25s","graylog_26s","graylog_27s","graylog_28s","graylog_29s","graylo g_30s"],
    "size": 10000
  },
  "dest": {
    "index": "graylog_0-30"
  }
}

```

Thanks!

---

<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:** [June 29, 2018, 9:43pm UTC](https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986/2 "2018-06-29T21:43:41Z")

</div>

What's the document count for each?

---

<div class="post-metadata">

**Author:** ![Mauro\_Julian\_Fernand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mauro_julian_fernand/32/79805_2.png) [@Mauro\_Julian\_Fernand](https://discuss.elastic.co/u/Mauro_Julian_Fernand)\
**Post date:** [July 2, 2018, 3:28pm UTC](https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986/3 "2018-07-02T15:28:43Z")

</div>

Well, I just realized that the reindex ended prematurely and it didn't reindex the total amount of documents, I don't know how I missed that. I'm now reindexing it again with conflicts=proceed to see if it works, thanks.

---

<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:** [July 30, 2018, 3:28pm UTC](https://discuss.elastic.co/t/uneven-shard-size-after-reindex/137986/4 "2018-07-30T15:28:45Z")

</div>

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