-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 an ILM action to rollup an index #48003
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Rollup) |
Pinging @elastic/es-core-features (:Core/Features/ILM+SLM) |
Are there any news on this? We're having a soon-to-be situation with metrics indices needing to be rolled up and I'd want to know if I should build something based on the Rollup mechanic or wait for this. Or do you believe the ILM action will be "backwards compatible" with previous rollup indices? |
waiting for this enhancement, Thanks! |
@TommySedin it's still very early in the process, so I can't really give any concrete details about how it will end up looking. We're working on the search side of things first, trying to remove the We definitely want some kind of migration path though. It's not clear how that will turn out: could be that we add logic so that both "old" and "new" rollup indices are handled internally by the search end point, or some way to migrate/reindex data to the new format that the ILM action uses, etc. But our goal is to not leave any currently rolled-up data "left behind" That's about all I have unfortunately, like I said it's still early in the process so we don't have a lot firm details yet. |
Will this feature allow for rollup jobs modification? Imagine the scenario where new fields appear in the indices, would it be possible to dynamically add new fields to the existing rollups without the need for recreating the job and losing the historical values? Thanks |
Our tentative plan is to have rollup as an action in ILM. The rollup configuration will stay pretty much the same, but it will be part of the ILM action. This means to update the rollup, one will only need to update the rollup configuration in the ILM policy, and the next time the ILM policy is executed it performs the rollup with the new parameters, e.g. the new fields. A future enhancement could be to automatically add fields that are being added to the index, e.g. based on a wildcard or some similar rule. This is the plan, but keep in mind that we are in the design phase, so the implementation may be different. |
Will there be an ILM phase for deleting old data in a rollup index? We would like to have two years worth of data in a rollup index but don't need to keep it for any longer than that. Do you have any recommendations for making sure that the index size doesn't grow indefinitely? |
Currently i was able to setup a template that matches the rollup index and set a ilm policy via the template. this ilm policy is for the rollup indices and have steps similar to normal policy, this way i was able to set a roll over the rollup index and also set up a delete phase for it. |
Just out of intrest, what version of Elasticsearch are you running? |
Currently upgrading to 7.9.2 |
@peterdkdp do you have it running aswell? Just to make sure .
? My main goal is to split indexes in size to keep them usable on a long term perspective. |
@michaelpietzsch my apologies, I was replying to your reply. I thought you got it working. |
In the meantime ive created something curator based |
this commit introduces a new Rollup ILM Action that allows indices to be rolled up according to a specific rollup config. The action also allows for the new rolled up index to be associated with a different policy than the original/source index. Optionally, the original index can be deleted. Relates elastic#42720. Closes elastic#48003.
this commit introduces a new Rollup ILM Action that allows indices to be rolled up according to a specific rollup config. The action also allows for the new rolled up index to be associated with a different policy than the original/source index. Relates elastic#42720. Closes elastic#48003.
Rollup should no longer be a continuous running job. Instead, it should be an action that can be triggered on ILM-managed indices. The action should iterate over all grouping tuples (dimensions) and calculate aggregate metrics (
min
/max
/avg
/value_count
) generating one document per grouping tuple (dimension).In the context of this issue we should implement the following:
avg
agg onrollup_metric
will internally fetch sum + count)The text was updated successfully, but these errors were encountered: