-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Give higher priorities to fetch tasks than query tasks? #29366
Comments
Pinging @elastic/es-search-aggs |
We discussed it further in FixitFriday and within the search team. Another option that was mentioned was to split tasks into two threadpools but we decided against it because we want to keep the number of threads contained, and decreasing the number of threads that query tasks can run in doesn't sound good either since some workloads consist only of query tasks. So next steps would be the following:
|
Folks, I would like to take a crack at this. Could someone please assign it to me? |
Hello, Can someone assign this to me? I would really like to contribute to this project. |
For the record, I don't think this issue is a good first issue. You can search for issues with the "good first issue" label if you are looking for something to work on. |
@jpountz Could you share your thoughts on what kind of Rally workloads can trigger this? I have a half baked patch that I want to run through rally first and see how things are looking before moving ahead with the patch. I tried running http_logs, but it doesnt seem search heavy enough to warrant this behaviour. |
Good question. This change would only matter if the search queue is not empty so we'd need to generate significant search load. |
Pinging @elastic/es-search (Team:Search) |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
Under high search load, fetch tasks may have to wait quite some time in the queue before being processed. I was wondering that we might want to give them a higher priority than query tasks in order to minimize the amount of time during which we have to keep resources open at the shard level, such as the index reader, and the amount of time during which the coordinating node needs to keep shard responses in memory. However I wouldn't expect it to improve latency or throughput.
Note that while this might look related to #14224, this issue doesn't try to give some searches a higher priority than other searches, but to different tasks that are required to run a single search.
The text was updated successfully, but these errors were encountered: