[backport] Adds a new Rollup Action (#64900)#65393
Merged
talevy merged 1 commit intoelastic:7.xfrom Nov 24, 2020
Merged
Conversation
Collaborator
|
Pinging @elastic/es-analytics-geo (Team:Analytics) |
This commit adds a new endpoint for Rollup V2, a new way to rollup indices.
Instead of relying on a cron-job, this action will rollup a whole index on the spot.
When an index is rolled up using a Rollup Config, it does the following
1. check that original index is read-only
2. runs an aggregation and indexes results into a temporary hidden rollup index
3. "resizes" the temporary index into the final rollup-index (in-place segment pointer juggling)
4. adds RollupMetadata about the rollup-group (keyed by original index name) and adds
custom index-metadata with data about what the rollup index's original index is so that its
group information in RollupMetadata can be looked up
example usage:
```
POST /_rollup_vtwo/index
{
"rollup_index": "index_rolled",
"groups": {
"date_histogram": {
"field": "date",
"calendar_interval": "1M"
},
"terms": {
"fields": ["unit"]
}
},
"metrics": [
{
"field": "temperature",
"metrics": ["sum"]
}
]
}
```
relates elastic#42720.
Contributor
Author
|
run elasticsearch-ci/packaging-sample-windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds a new endpoint for Rollup V2, a new way to rollup indices.
Instead of relying on a cron-job, this action will rollup a whole index on the spot.
When an index is rolled up using a Rollup Config, it does the following
custom index-metadata with data about what the rollup index's original index is so that its
group information in RollupMetadata can be looked up
example usage:
relates #42720.