-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow changing number of replicas of searchable snapshot index #11317
Allow changing number of replicas of searchable snapshot index #11317
Conversation
@andrross what do you think about this idea? |
Compatibility status:Checks if related components are compatible with change c28c3bc Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git] |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11317 +/- ##
============================================
- Coverage 71.34% 71.29% -0.05%
- Complexity 58964 58983 +19
============================================
Files 4890 4890
Lines 277477 277477
Branches 40308 40308
============================================
- Hits 197961 197838 -123
- Misses 62976 63230 +254
+ Partials 16540 16409 -131 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bugmakerrrrrr! This is definitely a gap as configuring replicas is something that should be allowed.
...ain/java/org/opensearch/action/admin/indices/settings/put/TransportUpdateSettingsAction.java
Show resolved
Hide resolved
Thanks @bugmakerrrrrr. This change looks good. Can you please add an entry to the changelog under |
Signed-off-by: panguixin <[email protected]>
e13e1b7
to
b4fd24b
Compare
Signed-off-by: panguixin <[email protected]>
b4fd24b
to
c28c3bc
Compare
@andrross Done. Btw, I find that allow changing allocation filter settings ( |
❕ Gradle check result for b4fd24b: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
❕ Gradle check result for c28c3bc: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Let's do that in a separate PR. Feel free to open an issue to track it as well. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-11317-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c4e703f9e7c31e991a57f3719910fdc086120e93
# Push it to GitHub
git push --set-upstream origin backport/backport-11317-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
…earch-project#11317) * Allow changing number of replicas of searchable snapshot index Signed-off-by: panguixin <[email protected]> * add change log Signed-off-by: panguixin <[email protected]> --------- Signed-off-by: panguixin <[email protected]> (cherry picked from commit c4e703f) Signed-off-by: Andrew Ross <[email protected]>
… (#11376) * Allow changing number of replicas of searchable snapshot index * add change log --------- (cherry picked from commit c4e703f) Signed-off-by: panguixin <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: panguixin <[email protected]>
…earch-project#11317) * Allow changing number of replicas of searchable snapshot index Signed-off-by: panguixin <[email protected]> * add change log Signed-off-by: panguixin <[email protected]> --------- Signed-off-by: panguixin <[email protected]>
…earch-project#11317) * Allow changing number of replicas of searchable snapshot index Signed-off-by: panguixin <[email protected]> * add change log Signed-off-by: panguixin <[email protected]> --------- Signed-off-by: panguixin <[email protected]>
…earch-project#11317) * Allow changing number of replicas of searchable snapshot index Signed-off-by: panguixin <[email protected]> * add change log Signed-off-by: panguixin <[email protected]> --------- Signed-off-by: panguixin <[email protected]>
…earch-project#11317) * Allow changing number of replicas of searchable snapshot index Signed-off-by: panguixin <[email protected]> * add change log Signed-off-by: panguixin <[email protected]> --------- Signed-off-by: panguixin <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
#5907 uses a whitelist to control which settings of searchable snapshot can be changed, but
index.number_of_shards
is not on the list. I think it is necessary to allow user to change the number of replicas based on their cost or performance needs.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.