-
Notifications
You must be signed in to change notification settings - Fork 503
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] Index State Management Shrink Action #444
Comments
Looks like I don't have permissions to tag this as 2.0. This feature is targeted for 2.0 preview and will add additional API and UI options to the existing policy creation system. Could this issue be tagged with 2.0, API, and UI? |
@downsrob: Is the UI for this action testable yet? |
Not yet, I am working on that now and expecting to get it into a PR mid next week |
Is this still 2.0 @Naarcha-AWS ? |
Yes @dblock |
Thank you @Naarcha-AWS for your help. I have updated the issue with the UI PR and some new changes regarding changing the target_index_suffix to target_index_name_template. Also, I believe that the aliases field is a bit difficult so I will add some more context here:
The simplest example to just add the alias 'my-alias' without any custom configuration would be:
This would add the "my-alias" alias to the output shrink index, additional aliases can be added in the array, for example:
|
What solution would you like?
We will need to add documentation for a new action in the Index State Management policies page.
The shrink action is a new type of action in the ISM that can be used to reduce the number of primary shards for a user specified index.
Open issue in ISM backend repo opensearch-project/index-management#40
Pull request for backend change opensearch-project/index-management#326 This PR has a lot of additional information on shrink action parameters, steps, and implementation.
Pull request for frontend change opensearch-project/index-management-dashboards-plugin#176
Use cases
In the current state of ISM, the only way to reduce the associated shard total for an index is to reduce the number of replicas per shard. However, this does not solve the inherent problem of having too many primary shards in the first place.
The shrink action will enable the following use cases.
Input Schema
The new action will have the following configurable parameters in it's definition:
Only one of num_new_shards, max_shard_size, or percentage_of_source_shards may be set.
Target_index_name_template, aliases, and force_unsafe are optional.
Do you have any additional context?
Screenshots are included in UI PR
The text was updated successfully, but these errors were encountered: