# ILM Pattern suffix reach max count

**URL:** <https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 29, 2022, 5:55am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425 "2022-09-29T05:55:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [September 29, 2022, 5:55am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/1 "2022-09-29T05:55:37Z")

</div>

Hello,  
I want to ask about ILM pattern count,  
what will happen if the pattern reach 999999?  
lets give an example I have :  
index-000001

then what happen if someday my index reached :  
index-999999

does the number reset or it increment to :  
index-1000000?

Thanks

---

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [September 29, 2022, 6:44am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/2 "2022-09-29T06:44:35Z")

</div>

is there any answer from Elastic Team?

---

<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:** [September 29, 2022, 7:16am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/3 "2022-09-29T07:16:33Z")

</div>

This is a community forum, so please be patient. It may take a few days to get a response, especially if your question is very specific and only a few people may know the answer.

While I do not know the answer, it sounds to me like a theoretical rather than practical question. If you assume rollover happens every hour, which is quite frequent, it would take 114 years to reach the maximum value. If you are rolling over indices much more frequently than that I would recommend you look at how you handle sharding as that to me would sound very suboptimal.

---

<div class="post-metadata">

**Author:** ![alfianaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfianaf/32/93192_2.png) [@alfianaf](https://discuss.elastic.co/u/alfianaf)\
**Post date:** [September 29, 2022, 7:28am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/4 "2022-09-29T07:28:39Z")

</div>

sorry for the not being patient, I thought my question won't be answered,

but thanks for the answer, then I should change how I handle the sharding if the rollover is too frequent,

Thanks again

---

<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:** [September 29, 2022, 7:54am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/5 "2022-09-29T07:54:17Z")

</div>

The whole point with rollover is to be able to achieve a suitable shard size in the face of fluctuating ingest volumes. You should avoid creating a lot of very small shards as this adds overhead and can cause performance and stability issues.

---

<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:** [October 27, 2022, 7:54am UTC](https://discuss.elastic.co/t/ilm-pattern-suffix-reach-max-count/315425/6 "2022-10-27T07:54:55Z")

</div>

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