opensearch-project / opensearch-migrations

Migrate, upgrade, compare, and replicate OpenSearch clusters with ease.
https://aws.amazon.com/solutions/implementations/migration-assistant-for-amazon-opensearch-service/
Apache License 2.0
39 stars 28 forks source link

Cluster tools #1123

Closed AndreKurait closed 2 weeks ago

AndreKurait commented 2 weeks ago

Description

Creates library cluster_tools for an easy to extend library of tools around opensearch business logic for migrations.

Ships with tools: create_index, change_shards, enable/disable_compatibility_mode

Issues Resolved

https://opensearch.atlassian.net/browse/MIGRATIONS-2201

Is this a backport? If so, please add backport PR # and/or commits #

Testing

Unit testing and some manual testing

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.65%. Comparing base (6fe5d2f) to head (696f779).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1123 +/- ## ============================================ - Coverage 80.54% 78.65% -1.90% Complexity 2907 2907 ============================================ Files 393 350 -43 Lines 14630 12194 -2436 Branches 1007 1007 ============================================ - Hits 11784 9591 -2193 + Misses 2233 1990 -243 Partials 613 613 ``` | [Flag](https://app.codecov.io/gh/opensearch-project/opensearch-migrations/pull/1123/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [gradle-test](https://app.codecov.io/gh/opensearch-project/opensearch-migrations/pull/1123/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `78.65% <ø> (ø)` | | | [python-test](https://app.codecov.io/gh/opensearch-project/opensearch-migrations/pull/1123/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.