愚者求师之过,智者从师之长。

elasticsearch客户端执行查询 lucene中 searchService.executeQueryPhase 执行耗时:16ms 为啥整个调用时间得157ms 耗时主要在哪里啊?

Elasticsearch | 作者 hanxiaobei | 发布于2019年05月08日 | 阅读数:1693

 
 elasticsearch客户端执行查询  lucene中 searchService.executeQueryPhase 执行耗时:16ms  为啥整个调用时间得157ms  耗时主要在哪里啊?
TIM图片20190508141714.png TIM图片20190508141720.png TIM图片20190508141942.png
已邀请:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自: huangzhiwei

追根溯源:The took time in the response contains the milliseconds that this request took for processing, beginning quickly after the node received the query, up until all search related work is done and before the above JSON is returned to the client. This means it includes the time spent waiting in thread pools, executing a distributed search across the whole cluster and gathering all the results.

took只是query的时间,不包括fetch的时间。且不包括网络延时
https://www.elastic.co/guide/e ... .html

要回复问题请先登录注册