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

Force faster failures on slow requests. #6918

Closed
Mpdreamz opened this issue Jul 18, 2014 · 1 comment
Closed

Force faster failures on slow requests. #6918

Mpdreamz opened this issue Jul 18, 2014 · 1 comment

Comments

@Mpdreamz
Copy link
Member

I'm purposefully issuing a badly formed query into my cluster which has enough indices for the returned exception message to exceed 200kb (around ~630 indices).

POST /_search?timeout=1000&master_timeout=1000
{
  "query": { "badjson": {}  }
}

I then start issuing ~20 of these in repetition:

image

While the first request comes back with a 400 all the others return 503 and some of them take 14s to complete even if I'm specifying timeouts on the request. I suppose they are waiting for the queue since a single search takes 600 of the 1000 slots (for each index?), I'm assuming this because the 503's return and im seeing a 503 straight after the first request.

EsRejectedExecutionException[rejected execution (queue capacity 1000)

Am i missing a toggle here? Ideally the timeout also forces requests to never exceed the specified timeout and return with an appropiate HTTP status code (504?).

@clintongormley
Copy link
Contributor

Closed in favour of #4586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants