# Can we set a fixed size for every shard?How?

**URL:** <https://discuss.elastic.co/t/can-we-set-a-fixed-size-for-every-shard-how/196885>\
**Category:** Elasticsearch\
**Created:** [August 27, 2019, 6:39am UTC](https://discuss.elastic.co/t/can-we-set-a-fixed-size-for-every-shard-how/196885 "2019-08-27T06:39:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lauea/32/26743_2.png) [@lauea](https://discuss.elastic.co/u/lauea)\
**Post date:** [August 27, 2019, 6:39am UTC](https://discuss.elastic.co/t/can-we-set-a-fixed-size-for-every-shard-how/196885/1 "2019-08-27T06:39:26Z")

</div>

As the subject, can we set a fixed size for every shard? And How?  
Only can I search related documents to set the watermater based on total disk size.  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.7/disk-allocator.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/disk-allocator.html)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 28, 2019, 11:16am UTC](https://discuss.elastic.co/t/can-we-set-a-fixed-size-for-every-shard-how/196885/2 "2019-08-28T11:16:43Z")

</div>

Take a look at [index lifecycle management](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/index-lifecycle-management.html) that uses [rollover](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/indices-rollover-index.html)

Can you explain your intention behind that fixes size in order to make sure the use-case is understood?

---

<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:** [September 25, 2019, 11:16am UTC](https://discuss.elastic.co/t/can-we-set-a-fixed-size-for-every-shard-how/196885/3 "2019-09-25T11:16:50Z")

</div>

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