# 7.16.2 - ILM - max primary shard size not working

**URL:** <https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975>\
**Category:** Elasticsearch\
**Created:** [March 17, 2022, 4:23pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975 "2022-03-17T16:23:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveParker](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@SteveParker](https://discuss.elastic.co/u/SteveParker)\
**Post date:** [March 17, 2022, 4:23pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975/1 "2022-03-17T16:23:29Z")

</div>

My ILM policy has a max shard size of 50gb but my indexes are growing to 100gb+, I must have missed something, help required please

---

<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:** [March 18, 2022, 4:27pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975/2 "2022-03-18T16:27:49Z")

</div>

Hey,

can you ensure that ILM is up and running via [Get index lifecycle management status API | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ilm-get-status.html)?

You can also use the ILM Explain API to get some more details for the index that should have been rolled over, maybe that helps to take a closer look. See [Explain lifecycle API | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ilm-explain-lifecycle.html)

--Alex

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 19, 2022, 5:14pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975/3 "2022-03-19T17:14:04Z")

</div>

What are your index shard and replica settings? A 1 shard, 1 replica index will grow to 100G, 2 50G shards.

Later versions may have both shard size and index size, I think I noticed index size as an option, but since I didn't need to research it, I didn't give it any thought.

---

<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:** [April 16, 2022, 5:15pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975/4 "2022-04-16T17:15:02Z")

</div>

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