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] 17295 to 2.x #17464

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

pandeydivyansh1803
Copy link
Contributor

Description

[Describe what this change achieves]

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

…hards per node and per index (opensearch-project#17295)

* Added a new index level setting to limit the total primary shards per index per node. Added relevant files for unit test and integration test.

Signed-off-by: Divyansh Pandey <[email protected]>

* update files for code quality

Signed-off-by: Divyansh Pandey <[email protected]>

* moved primary shard count function to RoutingNode.java

Signed-off-by: Divyansh Pandey <[email protected]>

* removed unwanted files

Signed-off-by: Divyansh Pandey <[email protected]>

* added cluster level setting to limit total primary shards per node

Signed-off-by: Divyansh Pandey <[email protected]>

* allow the index level settings to be applied to both DOCUMENT and SEGMENT replication indices

Signed-off-by: Divyansh Pandey <[email protected]>

* Added necessary validator to restrict the index and cluster level primary shards per node settings only for remote store enabled cluster. Added relevant unit and integration tests.

Signed-off-by: Divyansh Pandey <[email protected]>

* refactoring changes

Signed-off-by: Divyansh Pandey <[email protected]>

* refactoring changes

Signed-off-by: Divyansh Pandey <[email protected]>

* Empty commit to rerun gradle test

Signed-off-by: Divyansh Pandey <[email protected]>

* optimised the calculation of total primary shards on a node

Signed-off-by: Divyansh Pandey <[email protected]>

* Refactoring changes

Signed-off-by: Divyansh Pandey <[email protected]>

* refactoring changes, added TODO to MetadataCreateIndexService

Signed-off-by: Divyansh Pandey <[email protected]>

* Added integration test for scenario where primary shards setting is set for cluster which is not remote store enabled

Signed-off-by: Divyansh Pandey <[email protected]>

---------

Signed-off-by: Divyansh Pandey <[email protected]>
Signed-off-by: Divyansh Pandey <[email protected]>
Co-authored-by: Divyansh Pandey <[email protected]>
(cherry picked from commit bc209ee)
Copy link
Contributor

❌ Gradle check result for dd198e3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@pandeydivyansh1803 pandeydivyansh1803 changed the base branch from main to 2.x February 27, 2025 06:42
@pandeydivyansh1803 pandeydivyansh1803 changed the title Backport/backport 17295 to 2.x [Backport] 17295 to 2.x Feb 27, 2025
Copy link
Contributor

❌ Gradle check result for 97d3bdb: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

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.

1 participant