-
Notifications
You must be signed in to change notification settings - Fork 25.2k
took time value is much larger than that calculated by Profile API #29275
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
Comments
The profile api currently only profiles that query and aggregation parts. It doesn't measure the fetch phase nor the network overhead. I suggest you look at those. IMO I think there are two things to do here:
@owenericsson if you have any more questions please open up a thread on discuss.elastic.co and we can dive deeper. We keep github for bugs and features requests. |
Pinging @elastic/es-search-aggs |
hi @bleskes , back to this problem
BTW. the field type of the term aggregation i used is 'keyword', and do you think this overhead is from the GlobalOrdinals ? anyway i think it is very unlikely this overhead is from the network. |
OK, that changes things (although my comments are still valid in general). I will defer for someone from the search area to pick this up. |
Most likely most execution time is taken by something which is not measured by the profile, like the time it took to build global ordinals, time spent in the queue, time spent merging shard responses on the coordinating node, etc. I agree we shoud at least document this. |
one more thing need attention |
Adding some of the limitations mentioned as part of elastic#29275. Closes elastic#29275
Describe the feature: whole time calculation is wrong with took time value
Elasticsearch version (
bin/elasticsearch --version
): 5.3.2Plugins installed: []
JVM version (
java -version
): JDK 1.8 update 132OS version (
uname -a
if on a Unix-like system): CentOS 5.5Description of the problem including expected versus actual behavior:
i would like to diagnostic for a query with a term aggregation, and then i added a profile:true to the query. however i see the time took 500+ms while i found out that the maximum time of a shard is just ~10ms.
would you some one please give me some hint that where the 400+ms take place
Provide logs (if relevant):
see attachment, for security reason i skipped the true result and renamed the index name and field name.
result.txt
The text was updated successfully, but these errors were encountered: