-
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
[BUG] Set index.number_of_replicas
to null through index/_settings
API doesn't honor cluster setting
#14810
Comments
index.number_of_replicas
to null through index/_settings
API doesn't honor cluster.default_number_of_replicas
index.number_of_replicas
to null through index/_settings
API doesn't honor cluster setting
Duplicate of #14783 |
…arch-project#14810 Signed-off-by: Liyun Xiu <[email protected]>
Fixed in #14948 |
…arch-project#14810 Signed-off-by: Liyun Xiu <[email protected]>
…arch-project#14810 Signed-off-by: Liyun Xiu <[email protected]>
@chishui Thanks for reporting and raising a fix for this. I have my concern on what should be the number of replicas when I suggest that What are your thoughts @mgodwan? |
@sandeshkr419 thanks for the comment. If cluster setting is not configured, then 1 is the default replica number. The default number of 1 has been there and acknowledged by users for really long time. Setting it to 0 means user has no backup for their data and can potentially lose data if they don't explicitly configure the replica number. |
…arch-project#14810 Signed-off-by: Liyun Xiu <[email protected]>
…#14948) * Update setting API honors cluster's replica setting as default #14810 Signed-off-by: Liyun Xiu <[email protected]> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <[email protected]> --------- Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]>
…#14948) * Update setting API honors cluster's replica setting as default #14810 Signed-off-by: Liyun Xiu <[email protected]> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <[email protected]> --------- Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]> (cherry picked from commit b3459fd) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#14948) (#16287) * Update setting API honors cluster's replica setting as default #14810 * Update changelog & add one more test case --------- (cherry picked from commit b3459fd) Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Widdis <[email protected]>
Fix has been merged and documentation was added |
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <[email protected]> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <[email protected]> --------- Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]>
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <[email protected]> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <[email protected]> --------- Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]>
…arch-project#14810 (opensearch-project#14948) * Update setting API honors cluster's replica setting as default opensearch-project#14810 Signed-off-by: Liyun Xiu <[email protected]> * Update changelog & add one more test case Signed-off-by: Liyun Xiu <[email protected]> --------- Signed-off-by: Liyun Xiu <[email protected]> Signed-off-by: Daniel Widdis <[email protected]> Co-authored-by: Daniel Widdis <[email protected]>
Describe the bug
I tried to set
index.number_of_replicas
to null so that it will pick up default replica number configured for cluster.It always sets
index.number_of_replicas
to 1. However, I configuredcluster.default_number_of_replicas
to 3, and when I create the index and not specifyindex.number_of_replicas
, it will use 3 as default replica number.Related component
Indexing
To Reproduce
number_of_replicas
becomes 1Expected behavior
The default value of
index.number_of_replicas
should honor value of cluster settingcluster.default_number_of_replicas
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: