Add migrate to data tiers API#74264
Conversation
This adds the API to expose the service for migrating the elasticsearch abstractions (indices, ILM policies and an optional legacy template to delete) to data tiers routing allocation (away from custom node attributes)
|
Pinging @elastic/es-core-features (Team:Core/Features) |
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/part-2 |
|
Pinging @elastic/es-docs (Team:Docs) |
|
Pinging @elastic/clients-team (Team:Clients) |
|
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
|
Would this API be better suited in a namespace? Since it appears to be documented nearby ILM APIs perhaps the |
|
@dakrone @andreidan @sajjadwahmed could you please help us to understand the desired UX/user flows for this change (especially as it relates to any requested UI updates)? |
dakrone
left a comment
There was a problem hiding this comment.
This LGTM, thanks for working on it Andrei. I do think this should be nested within the /_ilm/ namespace, so POST /_ilm/migrate_to_data_tiers, as I think it fits best there rather than a top-level API. What do you think?
I don't think we currently have plans to expose this as part of the UI (please correct me if I'm mistaken @andreidan), but this would generally be something invoked as a one-off by an administrator or at the behest of support to help migrate without having to manually do the migration. |
|
@dakrone thanks for the review. Nested API under the |
This adds the _ilm/migrate_to_data_tiers API to expose the service for migrating the elasticsearch abstractions (indices, ILM policies and an optional legacy template to delete) to data tiers routing allocation (away from custom node attributes) (cherry picked from commit 636aa7c) Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This adds the _ilm/migrate_to_data_tiers API to expose the service for migrating the elasticsearch abstractions (indices, ILM policies and an optional legacy template to delete) to data tiers routing allocation (away from custom node attributes) (cherry picked from commit 636aa7c) Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This adds the API to expose the service for migrating the elasticsearch
abstractions (indices, ILM policies and an optional legacy template to
delete) to data tiers routing allocation (away from custom node attributes).
The details for how the migration is working are specified in #73689
The API is
The response will contain the name of the deleted legacy index template
(if any was deleted), a list of ILM policies and a list of indices names containing
the policies and indices that were migrated.
Relates to #73154