Skip to content
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

Top N Resource Intensive Search Queries #5175

Open
PritLadani opened this issue Nov 9, 2022 · 2 comments
Open

Top N Resource Intensive Search Queries #5175

PritLadani opened this issue Nov 9, 2022 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search

Comments

@PritLadani
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Get the top N currently running queries based on the resource consumption by parent and children tasks.

Describe the solution you'd like
Based on the resource consumption of parent task and the children tasks, we can score the ongoing queries and expose an API to list down the top N most resource consuming queries and user can cancel a query based on the resource consumption. This can be achieved by getting the tasks using the Tasks API on-demand.

Describe alternatives you've considered

Additional context
Current version of List Tasks API gives us the resource consumption by currently running SearchShardTasks as well as SearchTasks. By leveraging the same, we can list down top N ongoing search queries based on their resource consumption.

@PritLadani PritLadani added enhancement Enhancement or improvement to existing feature or request untriaged labels Nov 9, 2022
@anasalkouz
Copy link
Member

@PritLadani Can you list all related issues to the Meta issue ?

@PritLadani
Copy link
Contributor Author

@anasalkouz Here are all the open issues related to Search Backpressure: https://github.com/opensearch-project/OpenSearch/issues?q=is%3Aopen+is%3Aissue+backpressure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing & Search
Projects
None yet
Development

No branches or pull requests

3 participants