ES Response Time


(Prashant Agrawal) #1

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?


(Zachary Tong) #2

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:
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 elasticsearch+unsubscribe@googlegroups.com.
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.


(system) #3