ES Response Time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ES Response Time

Prashant Agrawal
Hi All,
Is there any way to measure end-to-end response time for a query in elastic search?
That is the time taken from the time query is executed and the result is shown on the ES UI.

And what does took parameter means in response ouput?
Reply | Threaded
Open this post in threaded view
|

Re: ES Response Time

Zachary Tong
The `took` parameter is the number of milliseconds that the query took to execute on the Elasticsearch server.  It's basically the time required to parse the query, broadcast it to the shards and collect the results.  It doesn't include network time going to and from Elasticsearch itself (since that is basically unknowable information to ES).

If you want to record total end-to-end, you'll have to do it in your application.  Start a timer, send the request, stop the timer when the response comes back.  That will be your total time.  You can also subtract the `took` parameter from the total time to see the effects of network (e.g. total time is 2 seconds, but `took` parameter is 100ms...that means you had 1.9s of network latency causing the slowdown).

-Zach


On Wednesday, February 26, 2014 6:31:27 AM UTC-5, Prashy wrote:
Hi All,
Is there any way to measure end-to-end response time for a query in elastic
search?
That is the time taken from the time query is executed and the result is
shown on the ES UI.

And what does took parameter means in response ouput?



--
View this message in context: <a href="http://elasticsearch-users.115913.n3.nabble.com/ES-Response-Time-tp4050525.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Felasticsearch-users.115913.n3.nabble.com%2FES-Response-Time-tp4050525.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFRFJdEmNyBNo2Bx3nwNcco88TUEA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Felasticsearch-users.115913.n3.nabble.com%2FES-Response-Time-tp4050525.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFRFJdEmNyBNo2Bx3nwNcco88TUEA';return true;">http://elasticsearch-users.115913.n3.nabble.com/ES-Response-Time-tp4050525.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/abbcb6e1-0ace-4835-8b93-dc1e69a32de2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.