-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Add _reindex to ILM #42784
Comments
I think rollups may be more appropriate here to merge daily indices into weekly/monthly/yearly indices. However integration between ILM and Rollup doesn't exist today. |
Pinging @elastic/es-core-features |
Rollups would be appropriate for those who do not care about losing granularity. There is still a need to merge multiple indexes in their entirety into on single index, which I believe can only be done with reindex. |
If you're already using ILM, why not adjust your ILM policy (and index template if you need to change the number of shards) to roll over at the desired interval/size from the get-go, rather than reindexing into merged indices later? Is there something that's stopping you from doing that? I hope this doesn't sound dismissive, I'm just trying to better understand the use case for this feature. |
The use case is having a hot-warm cluster architecture with time-based indexes. Only interested in keeping several daily indexes on the hot nodes. When looking to keep, for example, 60 days worth or data on a warm node; it is better to have 8 weekly indexes versus 60 individual daily indexes - so rollover is not really an option. What I'm doing is not unique. I'm excited to see ILM incorporated into the elasticsearch core, but disappointed that it is missing one of the more useful features found in curator. |
Thank you! That's very helpful in understanding your use case. We're taking a look at what's next for ILM right now and feedback like this is very useful. |
We discussed this in the weekly core/features sync. This feature would be useful for not only the case described here, but would also enable use cases which reduce the number of fields in an index to save storage space, or allow for sampling by only keeping a percentage of the documents in the index. However, there are some significant concerns as well:
Given those complexities, we're not necessarily opposed to implementing this, but there are improvements to ILM which take priority over this which we're going to work on first. We'll re-evaluate this feature once the work on reindexing resiliency and ILM scheduling is further along and we're more certain this is something we could offer safely. |
Bumping this as it is quite an interesting feature. |
Add _reindex to ILM policy. Would be beneficial to be able to merge daily indexes into weekly/monthly/yearly indexes in the warm and cold phases.
The text was updated successfully, but these errors were encountered: