-
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 search idle with no replicas #8173
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #8173 +/- ##
============================================
- Coverage 70.88% 70.87% -0.02%
- Complexity 57196 57200 +4
============================================
Files 4771 4771
Lines 270312 270323 +11
Branches 39505 39509 +4
============================================
- Hits 191609 191585 -24
- Misses 62600 62616 +16
- Partials 16103 16122 +19
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
This comment was marked as outdated.
This comment was marked as outdated.
Gradle Check (Jenkins) Run Completed with:
|
@andrross @Bukhtawar Any concerns on this? I think this is still valuable particularly with remote store and we can explore enabling search idle across the board with SegRep in a separate effort. |
Since "search idle" is a performance optimization I think we have a lot of options to change and improve the behavior going forward, so I don't see any one-way doors here. I also think this is an improvement over the current behavior of disabling search idle when there are no replicas, so I'm good with this change even as we explore improving the search idle behavior in all cases. |
server/src/internalClusterTest/java/org/opensearch/action/search/TransportSearchIT.java
Outdated
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
…index. Signed-off-by: Marc Handalian <[email protected]>
…enabled. Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
* Segment Replication - Allow shard idle when there are no replicas an index. Signed-off-by: Marc Handalian <[email protected]> * Add warning when updating search.idle.after with Segment Replication enabled. Signed-off-by: Marc Handalian <[email protected]> * PR cleanup. Signed-off-by: Marc Handalian <[email protected]> * Add more tests. Signed-off-by: Marc Handalian <[email protected]> * Remove unnecessary assertBusy Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]> (cherry picked from commit ca74aac) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Segment Replication - Allow shard idle when there are no replicas an index. * Add warning when updating search.idle.after with Segment Replication enabled. * PR cleanup. * Add more tests. * Remove unnecessary assertBusy --------- (cherry picked from commit ca74aac) Signed-off-by: Marc Handalian <[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>
…project#8173) * Segment Replication - Allow shard idle when there are no replicas an index. Signed-off-by: Marc Handalian <[email protected]> * Add warning when updating search.idle.after with Segment Replication enabled. Signed-off-by: Marc Handalian <[email protected]> * PR cleanup. Signed-off-by: Marc Handalian <[email protected]> * Add more tests. Signed-off-by: Marc Handalian <[email protected]> * Remove unnecessary assertBusy Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]>
…project#8173) * Segment Replication - Allow shard idle when there are no replicas an index. Signed-off-by: Marc Handalian <[email protected]> * Add warning when updating search.idle.after with Segment Replication enabled. Signed-off-by: Marc Handalian <[email protected]> * PR cleanup. Signed-off-by: Marc Handalian <[email protected]> * Add more tests. Signed-off-by: Marc Handalian <[email protected]> * Remove unnecessary assertBusy Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]>
…project#8173) * Segment Replication - Allow shard idle when there are no replicas an index. Signed-off-by: Marc Handalian <[email protected]> * Add warning when updating search.idle.after with Segment Replication enabled. Signed-off-by: Marc Handalian <[email protected]> * PR cleanup. Signed-off-by: Marc Handalian <[email protected]> * Add more tests. Signed-off-by: Marc Handalian <[email protected]> * Remove unnecessary assertBusy Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
…project#8173) * Segment Replication - Allow shard idle when there are no replicas an index. Signed-off-by: Marc Handalian <[email protected]> * Add warning when updating search.idle.after with Segment Replication enabled. Signed-off-by: Marc Handalian <[email protected]> * PR cleanup. Signed-off-by: Marc Handalian <[email protected]> * Add more tests. Signed-off-by: Marc Handalian <[email protected]> * Remove unnecessary assertBusy Signed-off-by: Marc Handalian <[email protected]> --------- Signed-off-by: Marc Handalian <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
This is a re-open of #7736.
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. It will warn if a user attempts to update the search.idle.after interval with replicas configured.
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.