# Rollover is taking time

**URL:** <https://discuss.elastic.co/t/rollover-is-taking-time/268927>\
**Category:** Elasticsearch\
**Created:** [March 31, 2021, 3:08pm UTC](https://discuss.elastic.co/t/rollover-is-taking-time/268927 "2021-03-31T15:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narayan\_Banik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narayan_banik/32/84627_2.png) [@Narayan\_Banik](https://discuss.elastic.co/u/Narayan_Banik)\
**Post date:** [March 31, 2021, 3:08pm UTC](https://discuss.elastic.co/t/rollover-is-taking-time/268927/1 "2021-03-31T15:08:04Z")

</div>

My Policy is supposed to roll over indices if size reaches to 500mb like below:

```auto
GET _ilm/policy/my-policy
{
  "my-policy" : {
    "version" : 4,
    "modified_date" : "2021-03-31T14:34:45.932Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "500mb",
              "max_age" : "1h"
            }
          }
        },
        "delete" : {
          "min_age" : "1h",
          "actions" : {
            "delete" : { }
          }
        }
      }
    }
  }
}

```

But observed indices are rolling over after reaching over 2GB.

Whats wrong with my config?

---

<div class="post-metadata">

**Author:** ![kavierkoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kavierkoo/32/86555_2.png) [@kavierkoo](https://discuss.elastic.co/u/kavierkoo)\
**Post date:** [April 1, 2021, 10:58am UTC](https://discuss.elastic.co/t/rollover-is-taking-time/268927/2 "2021-04-01T10:58:23Z")

</div>

Hi Narayan,

There's an interval of 10 minutes that rollover will happen

> `indices.lifecycle.poll_interval`  
> ([Dynamic](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#dynamic-cluster-setting), [time unit value](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units)) How often index lifecycle management checks for indices that meet policy criteria. Defaults to `10m` .

> **[Index lifecycle management settings in Elasticsearch | Elasticsearch Guide...](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-settings.html)**

Rollover will only run after every interval, if within the interval your logs keeps coming in, it will still store at the previous even after the policy hits.

---

<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 29, 2021, 10:58am UTC](https://discuss.elastic.co/t/rollover-is-taking-time/268927/3 "2021-04-29T10:58:25Z")

</div>

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