-
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
Segment Replication - Allow shard idle when there are no replicas in index #7736
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Nitpick on PR title/commit message. Should be "no replicas in index" not "...in cluster", right? |
Yep you are right it should read index not cluster. |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7736 +/- ##
============================================
- Coverage 70.98% 70.70% -0.28%
+ Complexity 56714 56136 -578
============================================
Files 4722 4680 -42
Lines 267608 266079 -1529
Branches 39216 39074 -142
============================================
- Hits 189962 188137 -1825
- Misses 61589 61975 +386
+ Partials 16057 15967 -90
|
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.
The only concern I see with this is the bi-modal behaviour we are creating w/ and w/o replicas
Gradle Check (Jenkins) Run Completed with:
|
Agreed. It's strange and unintuitive that a user could specify a value for |
Agree on both points. Does documenting this clearly within Segment Replication docs alleviate some concern here? We could also add validation of replica count / replication strategy if |
I'm inclined to disallow the Is there any precedent for index settings that are mutually incompatible? |
I've moved this to a new issue with benchmarks for the zero replica case. The original two linked issues are not specific to the zero replica case.
I am on board with this, but I think only for the case where replicas are specified. The benchmark i've included in the linked issue to me is significant enough of a hit to warrant this special case.
I think only from a validation perspective such as |
…index. Signed-off-by: Marc Handalian <handalm@amazon.com>
… enabled. This change updates search idle setting to not be configurable on segrep indices with replicas. Signed-off-by: Marc Handalian <handalm@amazon.com>
@andrross Made an update here to add validation to search.idle.after setting that prevents configuring this setting when SR is enabled with replicas. It will allow configuration of the setting with segrep only if no replicas are configured. I'm not in love with this special replica count behavior but I think it would be a poor experience to not be able to change from the default 30s value when there are no replicas. |
Closing this for now, I don't like the added dependency on IndicesService in IndexSettings. |
Gradle Check (Jenkins) Run Completed with:
|
This was a bug in the validation when the value was left at default. Adding more context to issue... |
oops, I rewrote the history here and can't re-open - opened it again under #8173 |
Description
With Segment Replication enabled we generally disable shard idle. This change ensures there are replicas in the index before disabling shard idle with SR.
Related Issues
#7761
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.