Open joegallo opened 2 years ago
Pinging @elastic/es-data-management (Team:Data Management)
re: https://github.com/elastic/elasticsearch/issues/83039 (that we don't have an especially great way to 'retire' an alias or datastream that's not going to be written to anymore):
At the moment we have some error conditional handling around situations where the index in question is unexpectedly marked with index.lifecycle.indexing_complete
set to true
:
A potentially interesting implementation of alias/datastream 'retirement' would be to revise that logic a bit so that we could merely mark an index as finished by setting index.lifecycle.indexing_complete
to true
and then having ILM continue past check-rollover-ready
and continue on through the rest of the lifecycle. In order to make this work, though, we'd need to juggle is_write_index
when we see this (since the rollover itself wouldn't handle that anymore). Taking that a step further, for datastreams that would open up the possibility that a datastream would have no current write index, so a nearby or parallel effort to this would be having the ability to make a datastream read only.
This meta issue tracks some enhancements and other changes around handling rollovers (especially ILM rollovers) better in the cases of small or empty indices.
Enhancements
Related changes
ilm-history-ilm-policy
,logs
, as well as the policies installed by APM or Kibana, etc.)Tech Debt