Skip to content
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

[Backport 2.x] [Segment Replication] Allocation and rebalancing based on average primary shard count per index #6541

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f61402a from #6422.

…mary shard count per index (#6422)

* [Segment Replication] Move primary shard first during rebalancing

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Address review comments

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add primary weight constraint

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add average primary shard count constraint for allocation and rebalancing operation

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Spotless fix and javadocs

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add failing tests

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Fix unit tests

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add unit test for nodes breaching multiple constraints

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add comments and update unit test

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Address review comments

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Remove auto-expand replicas integration test

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Address review comments

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Update comments for tests

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Add changelog entry

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Remove extra changelog entry

Signed-off-by: Suraj Singh <surajrider@gmail.com>

---------

Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit f61402a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov-commenter
Copy link

Codecov Report

Merging #6541 (f4773b4) into 2.x (f4773b4) will not change coverage.
The diff coverage is n/a.

❗ Current head f4773b4 differs from pull request most recent head d2fce87. Consider uploading reports for the commit d2fce87 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##                2.x    #6541   +/-   ##
=========================================
  Coverage     70.47%   70.47%           
  Complexity    59322    59322           
=========================================
  Files          4798     4798           
  Lines        284480   284480           
  Branches      41333    41333           
=========================================
  Hits         200500   200500           
  Misses        67206    67206           
  Partials      16774    16774           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      3 org.opensearch.index.reindex.UpdateByQueryBasicTests.testMultipleSources

@dreamer-89 dreamer-89 merged commit 57a24ba into 2.x Mar 4, 2023
@github-actions github-actions bot deleted the backport/backport-6422-to-2.x branch March 4, 2023 00:28
@xiaoshi2013
Copy link

very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants