-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Introduce executor for concurrent search #98204
Merged
javanna
merged 35 commits into
elastic:main
from
javanna:enhancement/bounded_executor_concurrent_search
Aug 10, 2023
Merged
Changes from 10 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
20e6dbe
Introduce executor for concurrent search
javanna 01733dc
Update docs/changelog/98204.yaml
javanna 9229f4d
forbidden api
javanna f67551f
grrrrrrrrrr
javanna db6e906
leftover
javanna 3b86ab1
forbidden api
javanna 438d76d
spotless
javanna ad260e0
Update server/src/main/java/org/elasticsearch/threadpool/ThreadPool.java
javanna 5a8ec56
iter
javanna 9069bfe
iter
javanna 026258c
iter
javanna fed2aaf
Merge branch 'main' into enhancement/bounded_executor_concurrent_search
javanna 6688e92
iter
javanna cfcc819
iter
javanna d2a982b
special case for no segments
javanna 0b2b243
spotless
javanna 103363f
terminate thread pool in test
javanna b44a239
Merge branch 'main' into enhancement/bounded_executor_concurrent_search
javanna 4220d6a
fix thread pool executor cast
javanna 89faa2b
iter
javanna 9ec1fd5
Merge branch 'main' into enhancement/bounded_executor_concurrent_search
javanna eced2c8
iter
javanna 2844a05
iter
javanna 5959f83
remove TODO and clarify comments
javanna ee55047
clarify docs
javanna 8c77ed6
spotless
javanna af76ab6
iter
javanna 262996d
Remove supportsOffloadingSequentialCollection() method and do aggrega…
martijnvg bb4ffca
Also postCollect when there are no slices
martijnvg c3d8034
address tests
martijnvg 151b93b
spotless
martijnvg 23121e3
Correctly overwrite supportsParallelCollection(...)
martijnvg bca4050
fixed unit tests
martijnvg df0ff91
Also perform postCollection when executing search in sort order.
martijnvg 9b92a0b
Comment
javanna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 98204 | ||
summary: Introduce executor for concurrent search | ||
area: Search | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,13 +281,6 @@ public class SearchModule { | |
Setting.Property.NodeScope | ||
); | ||
|
||
public static final Setting<Boolean> SEARCH_CONCURRENCY_ENABLED = Setting.boolSetting( | ||
"search.concurrency_enabled", | ||
true, | ||
Setting.Property.NodeScope, | ||
Setting.Property.Dynamic | ||
); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved this to SearchService together with the other existing search settings (including minimum docs per slice which affects search concurrency) |
||
private final Map<String, Highlighter> highlighters; | ||
|
||
private final List<FetchSubPhase> fetchSubPhases = new ArrayList<>(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I have renamed the escape hatch to disable concurrency to align it with the name of the new thread pool, as it effectively affects whether the new thread pool is enabled or not.