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

Protecting cluster in elastic search from big queries #37856

Closed
nitin2goyal opened this issue Jan 25, 2019 · 2 comments
Closed

Protecting cluster in elastic search from big queries #37856

nitin2goyal opened this issue Jan 25, 2019 · 2 comments
Labels
discuss >feature :Search/Search Search-related issues that do not fall into other categories

Comments

@nitin2goyal
Copy link
Contributor

PROBLEM

We have use case where we are running ES on 100s of nodes and we get a mix of long and small running concurrent queries, where long and short is defined by number of shards it executes on.

https://discuss.elastic.co/t/long-query-starving-other-small-queries-and-slowing-down-the-cluster/163665?u=dextermorgan

I know we have a feature where we can limit the number of concurrent shards per search request and protect our cluster form one big query but what if there are more concurrent big queries with small queries. It would still starve the small queries

PROPOSAL

I propose to introduce a new search queue, maybe called as search_fast with configurable threads and elasticsearch can schedule smaller queries on this queue in case "search" thread queue size is large.

Let me know your thoughts regarding this and I can come up with a design and later, pull request.

P.S. - Something similar in YARN - https://hortonworks.com/blog/yarn-capacity-scheduler/

@jimczi jimczi added >feature :Search/Search Search-related issues that do not fall into other categories labels Jan 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@jpountz
Copy link
Contributor

jpountz commented Jan 25, 2019

Hi @nitin2goyal, thanks for reporting this feature request. This has been a recurring request (with some variations) so we decided to start a new thread that would collect feedback regarding assigning priorities to search requests: #37867. Please feel free to give more details about your use-case there.

@jpountz jpountz closed this as completed Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss >feature :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

No branches or pull requests

4 participants