-
Notifications
You must be signed in to change notification settings - Fork 112
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
[FEATURE] Copy metadata from last index during rollover #849
Comments
@opensearch-project/index-management Let me know if I can go ahead with this change. |
@bowenlan-amzn Thanks for the confirmation. Can you assign this issue to me? The plan was to copy only settings and mappings from the previous index. Should one parameter like |
Thanks a lot! |
any update on this ticket? We have dynamic attribute mapping. So we will need to update rollover alias manually |
Is your feature request related to a problem?
Follow up from the feature request in OpenSearch: opensearch-project/OpenSearch#8419
During rollover, the index metadata is picked up from the template. But in case the mappings have been updated during ingestion due to dynamic mappings being enabled, the new index will not have the latest mappings. When data is ingested on the new index, there will be updation of mappings immediately which will result in cluster state updates. These cluster state updates can potentially increase the load on the cluster manager nodes.
What solution would you like?
Rollover action should have an option to copy the metadata from the previous index. This way the mappings will be in sync with documents being ingested and we can avoid redundant dynamic mappings updates.
Detailed API level changes:
The rollover action will have a new boolean parameter
use_previous_index_metadata
like below:This parameter will be false by default. When this is set to true, during rollover the metadata will be copied from the last write index of the alias or the data stream.
The text was updated successfully, but these errors were encountered: