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

Query Prioritization #1140

Closed
getsaurabh02 opened this issue Aug 24, 2021 · 2 comments
Closed

Query Prioritization #1140

getsaurabh02 opened this issue Aug 24, 2021 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request

Comments

@getsaurabh02
Copy link
Member

As part of #1042 we are planning to do resource mapping of queries, and selective rejection when in duress. We want to extend the solution to also allow query prioritisation, which provides mechanism to selectively execute queries, when there are multiple queries with different priorities contending for the same resources.

Not all queries in the workload are of equal importance to customer. Often performance of one request or set of queries might be more important than others. With query prioritisation, customers can define the relative importance of queries in a workload by setting a priority value. The priority is specified for a dynamic queue such as one of (CRITICAL, HIGHEST, HIGH, NORMAL, LOW, LOWEST).

Opensearch will use the priority when accepting queries for execution, and to determine the amount of resources to be allocated to a query. By default, queries run with their priority set to NORMAL. These priority of query is also used under duress, to selectively cancel resource guzzling queries, and recover the system.

More details to follow.

@getsaurabh02 getsaurabh02 added the enhancement Enhancement or improvement to existing feature or request label Aug 24, 2021
@Bukhtawar
Copy link
Collaborator

Duplicate of #1017

@getsaurabh02
Copy link
Member Author

Moving details to #1017 and closing this one, since it got created first.

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
Projects
None yet
Development

No branches or pull requests

2 participants