# How to equally split shards storage space?

**URL:** <https://discuss.elastic.co/t/how-to-equally-split-shards-storage-space/140089>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 6:57am UTC](https://discuss.elastic.co/t/how-to-equally-split-shards-storage-space/140089 "2018-07-16T06:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![clash\_of\_clanss](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@clash\_of\_clanss](https://discuss.elastic.co/u/clash_of_clanss)\
**Post date:** [July 16, 2018, 6:57am UTC](https://discuss.elastic.co/t/how-to-equally-split-shards-storage-space/140089/1 "2018-07-16T06:57:25Z")

</div>

Hi,

I know that we can assign number of shards per index by using index-template. but Is there any way to assign shards storage space like 30GB/shard, 45GB/shard manually? In my use case I am generating a index with date in every day. So the indices are gradually increased every day. also the number of shards will be increased. Is there any way to solve this issue and any better approach for my use case?

Thanks,  
Arun

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 16, 2018, 7:10am UTC](https://discuss.elastic.co/t/how-to-equally-split-shards-storage-space/140089/2 "2018-07-16T07:10:50Z")

</div>

Instead of having strict daily indices, look at using the [rollover API](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/indices-rollover-index.html). This allows you to cut indices based on time and or size. [This blog post](https://www.elastic.co/blog/managing-time-based-indices-efficiently) provides some additional background.

---

<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:** [August 13, 2018, 7:10am UTC](https://discuss.elastic.co/t/how-to-equally-split-shards-storage-space/140089/3 "2018-08-13T07:10:51Z")

</div>

Closed on August 13, 2018, 7:10am UTC

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