# Index Lifecycle Policies

**URL:** <https://discuss.elastic.co/t/index-lifecycle-policies/363069>\
**Category:** Elasticsearch\
**Created:** [July 13, 2024, 6:05am UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069 "2024-07-13T06:05:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 13, 2024, 6:05am UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/1 "2024-07-13T06:05:21Z")

</div>

![2024-07-13 09_02_16-172.20.10.41 - Remote Desktop Connection](https://us1.discourse-cdn.com/elastic/original/3X/5/6/567c1ec01277f9a7ce5338313e72110631e3ebfd.png)

How do I change the field value Maximum docs in the primary shard?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 13, 2024, 2:10pm UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/2 "2024-07-13T14:10:01Z")

</div>

Change to which value? Your image is too small and is pretty hard to see anything on it.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 13, 2024, 2:41pm UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/3 "2024-07-13T14:41:16Z")

</div>

to 1000000000

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 13, 2024, 2:42pm UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/4 "2024-07-13T14:42:24Z")

</div>

![2024-07-13 17_41_06-172.20.10.41 - Remote Desktop Connection](https://us1.discourse-cdn.com/elastic/original/3X/2/2/2243861d9063dc2d9fc65ede50acfb5722f30b31.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 13, 2024, 2:57pm UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/5 "2024-07-13T14:57:14Z")

</div>

Your screenshots are impossible to see, they are too small.

But what is the issue here? To change the maximum number of docs you just need to enter the number and save the policy.

Is this not working?

Also, if you check the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-lifecycle-policy.html) there is this important note.

> **The rollover action implicitly always rolls over a data stream or alias if one or more shards contain 200000000 or more documents**. Normally a shard will reach 25GB long before it reaches 200M documents, but this isn’t the case for space efficient data sets. **Search performance will very likely suffer if a shard contains more than 200M documents**. This is the reason of the builtin limit.

I'm not sure if this is hard coded or enforced, but I would not go over this limit as this can impact your search performance.

---

<div class="post-metadata">

**Author:** ![dsagent](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dsagent](https://discuss.elastic.co/u/dsagent)\
**Post date:** [July 13, 2024, 3:14pm UTC](https://discuss.elastic.co/t/index-lifecycle-policies/363069/6 "2024-07-13T15:14:19Z")

</div>

I specified the number and then save, but when entering the data, it enters to 200m and then scrolls to a new indicator, and I want it to scroll when the number of documents is 1000000000 When I did that, the change is not taken, but the default value
