-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Search] Update timeout configurations #75321
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
++ This makes sense to me. All of the usages of Also worth noting that technically Vega is using
Introducing If we were to remove it... is anybody outside of the And if we were to keep it, I wonder if it should move from Either way we probably have time to decide on that since we wouldn't be able to make this breaking change until 8.0, so there would have to be some interim period of time where we check for |
@lukeelmers I think there is just a misunderstanding here. We do not want to remove |
Ahh thanks for clarifying... that makes much more sense then 👍 |
At the moment, we have two search related timeout configurations:
elasticsearch.shardTimeout
- Used to indicate the shard timeout (i.e. how long it can run on a single shard). It is taken fromkibana.yml
setting, which is30s
by default.elasticsearch.requestTimeout
- Used by the Elastic Search client, to put a maximum time limit on eachElasticsearch
request (it might be running requests on multiple shards). It is30s
by default.Moving forward with the Background Sessions and Async Search initiatives, I would like to propose the following changes:
Introduce
search.searchTimeout
and removeelasticsearch.requestTimeout
in async searchThe
elasticsearch.requestTimeout
option is currently being used to limit the amount of time a series ofasync_search
requests is allowed to run.This use is incorrect and limiting, and hence we want to separate the timeout controlling this behavior into a separate setting:
search.searchTimeout
. This setting will default to a higher value (2\5 minutes TBD @giladgal) in 7.10, with the goal of making it unlimited by default in 7.11 (hence allowing a user running longer queries, as long as they stay on screen).Doing so, will leave
elasticsearch.requestTimeout
to be a configuration used only byESClient
.Use
elasticsearch.shardTimeout
on the serverSince the user can't (and doesn't need to) override the value of
shardTimeout
, we can use it on the server only. It should be sent with everysearch
request. It can be used on the server side only, and removed from the client.The text was updated successfully, but these errors were encountered: