# Reindexing size understanding

**URL:** <https://discuss.elastic.co/t/reindexing-size-understanding/182944>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 3:59pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944 "2019-05-27T15:59:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 27, 2019, 3:59pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/1 "2019-05-27T15:59:50Z")

</div>

I have 1 index  
logs-test tKpZpC8LQPqZdCZd7foPkA 5 1 2091273 0 1gb 1gb

now i have created 1 more index logs-test-reindex with only 1 shard and no replica.

logs-test-reindex cUtPjcFuRWKU3kC0mHJMjA 1 0 2091273 0 1.1gb 1.1gb

my understanding:  
if there is no replica then it should occupy less space on disk but results are opposite, this index started occupying more space 1.1gb as compared to 1gb 🤔

---

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 27, 2019, 4:00pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/2 "2019-05-27T16:00:37Z")

</div>

so please help me in understanding what exactly is happening inside elasticsearch in this case?

---

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [May 27, 2019, 5:05pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/3 "2019-05-27T17:05:36Z")

</div>

I'm confused with provided data,

> logs-test tKpZpC8LQPqZdCZd7foPkA 5 1 2091273 0 1gb 1gb

According to this, the index has 5 primary shards and 1 replica shard. In that case both primary store size and total store size cannot be 1GB as the above line claims to be.

---

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 27, 2019, 5:10pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/4 "2019-05-27T17:10:50Z")

</div>

> [@elk11](#):
>
> total store size cannot be 1GB as the above line claims to be.

rest all indexes are also showing same digits for store.size & pri.store.size

what it should be according to you?  
less or more

---

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [May 27, 2019, 5:16pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/5 "2019-05-27T17:16:20Z")

</div>

primary store size should be less than store size in your case as you have 'number of replicas' set to 1 according to this line:

> logs-test tKpZpC8LQPqZdCZd7foPkA **5 1** 2091273 0 1gb 1gb

(by less i mean primary store size should be half the store size when replica is set to 1)

---

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 27, 2019, 5:18pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/6 "2019-05-27T17:18:15Z")

</div>

ohkk ohkk  
that way you are saying

yes it should be half 🤔

in your es is it showing same way?

---

<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 24, 2019, 5:18pm UTC](https://discuss.elastic.co/t/reindexing-size-understanding/182944/7 "2019-06-24T17:18:27Z")

</div>

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