# ILM rollover works as expected, but write-index does not move

**URL:** <https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 11, 2021, 10:36pm UTC](https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724 "2021-06-11T22:36:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BradVido](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradvido/32/741_2.png) [@BradVido](https://discuss.elastic.co/u/BradVido)\
**Post date:** [June 11, 2021, 10:36pm UTC](https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724/1 "2021-06-11T22:36:43Z")

</div>

I'm using ES 6.8.1 and have ILM configured with a Hot, Warm, and Delete phase.

When my index hits its rollover threshold (50gb), ES does trigger a rollover, and creates a new index with the number incremented.

However, I would expect that at this point, my write-index alias would get assigned to the newly created index and removed from the one that just rolled over. This doesn't happen.

Instead, the write-index alias remains on the old index, and worse yet, that index is set to read only while it reduces shard count and merges, so all indexing fails!

Is my assumption that the write-index should immediately move on rollover correct? If so, any idea why that's not happening?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2021, 12:29am UTC](https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724/2 "2021-06-16T00:29:44Z")

</div>

Can you share your policy and index template?

---

<div class="post-metadata">

**Author:** ![BradVido](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradvido/32/741_2.png) [@BradVido](https://discuss.elastic.co/u/BradVido)\
**Post date:** [June 21, 2021, 4:06pm UTC](https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724/3 "2021-06-21T16:06:06Z")

</div>

I wiped everything clean, retried and now it's working as expected. Not sure what I misconfigured before, but I'm guessing something.

Anyway, following the ILM guide to a T fixed this for me.

---

<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:** [July 19, 2021, 4:06pm UTC](https://discuss.elastic.co/t/ilm-rollover-works-as-expected-but-write-index-does-not-move/275724/4 "2021-07-19T16:06:42Z")

</div>

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