Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: provide an API to manually rollover an index that currently has an ILM policy #49650

Closed
tarp2699 opened this issue Nov 27, 2019 · 2 comments
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management

Comments

@tarp2699
Copy link

Reason: Mappings or index settings are changed in templates and an index rollover is necessary to pick up the change. The change needs to be immediate and you can't wait for the index to roll normally.
Process:
Currently I do the following.

  1. Create a new index with an incremented number
  2. API call to _alias to set is_write_index to false on the current one and true on the new one.
  3. Update _settings on the original index to index.lifecycle.indexing_complete: true
    Those 3 steps are kind of pain to do by hand or lookup. I wrote a wrapper python script that does this, but it seems like it would be easy just to create a new API call to perform this.
@tarp2699 tarp2699 changed the title provide an API to manually rollover an index that currently has an ILM policy enhancement: provide an API to manually rollover an index that currently has an ILM policy Nov 27, 2019
@cbuescher cbuescher added the :Data Management/ILM+SLM Index and Snapshot lifecycle management label Nov 27, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

@gwbrown
Copy link
Contributor

gwbrown commented Nov 27, 2019

I have good news: This is already implemented! See #47324 - as of 7.5, you'll be able to just call the rollover API manually and ILM will figure it out and continue working as you would expect.

Because this has already been addressed, I'm going to close this issue. Please comment further if the above feature does not address your needs and we can discuss further.

(edit: also see #44175 for the original issue and discussion which lead to the linked PR)

@gwbrown gwbrown closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management
Projects
None yet
Development

No branches or pull requests

4 participants