Add a 'hot queries' API for sampling query details #34807
Labels
>feature
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
I have an idea for an API that I would love to see. This API would sample the
queries that came into a node, returning information about the query execution.
This is similar to the hot_threads API that we currently have, but wouldn't
require a user to enable the query slowlog, since that is a higher operational
burden for debugging information than this API would be.
An invocation could look like:
POST /_nodes/hot_queries
With some optional parameters:
sample_time
- how long to sample, maybe a default of 10 seconds?maximum_queries
- maximum number of queries to sample before returninglower_limit
- discard queries that take less than this amount of time, ie "10ms"human
- return things in human readable format alsoAnd the response would look something like:
And each query response details would look something like:
This would probably be local information (
executed_on
above may not behelpful) and thus it would need to be executed on nodes that do most of the
query coordination (client nodes if they're being used).
The text was updated successfully, but these errors were encountered: