# How to set indices.lifecycle.poll\_interval?

**URL:** <https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 14, 2021, 4:11pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143 "2021-11-14T16:11:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)\
**Post date:** [November 14, 2021, 4:11pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/1 "2021-11-14T16:11:35Z")

</div>

How to set indices.lifecycle.poll\_interval?  
Read that it a cluster level setting.

Thanks and regards  
shini

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 14, 2021, 4:27pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/2 "2021-11-14T16:27:21Z")

</div>

You can change the ILM poll interval if needed:

```auto
PUT _cluster/settings
{
  "transient": {
    "indices.lifecycle.poll_interval": "5s"
  }
}

```

But I'd not do this in production as the default values seem reasonable to me.

Note that I used `transient` here. So it won't survive a cluster restart.  
Use `persistent` of you want it to be persistent.

---

<div class="post-metadata">

**Author:** ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)\
**Post date:** [November 14, 2021, 4:54pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/3 "2021-11-14T16:54:54Z")

</div>

Thanks sir,  
I was planning to test the ILM policy that I created with indices of small sizes as roll over condition . So this setting may be helpful for that.  
Thanks and regards  
shini

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 14, 2021, 4:59pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/4 "2021-11-14T16:59:48Z")

</div>

Hi @shi

Let me save you a little trouble ... testing lifecycle with small indices and small times, and small sizes will will not perform "Exactly" as you expect there have been a number of threads on this...

See [Here](https://discuss.elastic.co/t/ilm-rollover-not-working-on-max-size/287999/4) and [Here](https://discuss.elastic.co/t/question-about-index-rollover/207452)

Not to say you can not test... but if you expect indices to rollover at _ **exactly** _ 50MB they will not... Rollover is a background task... ILM is geared to work on indices that of sizes of GBs, hours, days etc... not MB and Minutes.

---

<div class="post-metadata">

**Author:** ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)\
**Post date:** [November 15, 2021, 6:13pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/5 "2021-11-15T18:13:36Z")

</div>

Thanks sir for this additional information , I will proceed accordingly.  
Thanks and regards  
shini

---

<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:** [December 13, 2021, 6:13pm UTC](https://discuss.elastic.co/t/how-to-set-indices-lifecycle-poll-interval/289143/6 "2021-12-13T18:13:54Z")

</div>

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