文章目录

  • Profile API 简介

Profile API 简介

Profile API提供了有关搜索请求中各个组件的执行的详细时序信息。它使用户可以洞悉搜索请求是如何在低级执行的,从而使用户可以了解为什么某些请求很慢的原因,并采取措施加以改进。请注意,Profile API,不统计网络延迟,搜索获取阶段所花费的时间,请求花费在队列中或在协调节点上合并分片响应所花费的时间。

Profile API的输出非常冗长,尤其是对于在许多分片上执行的复杂请求而言。建议打印漂亮的响应,以帮助理解输出

GET /twitter/_search
{"profile": true,"query" : {"match" : { "message" : "some number" }}
}

返回

{"took": 25,"timed_out": false,"_shards": {"total": 1,"successful": 1,"skipped" : 0,"failed": 0},"hits": {"total" : {"value": 4,"relation": "eq"},"max_score": 0.5093388,"hits": [...] },"profile": {"shards": [{"id": "[2aE02wS1R8q_QFnYu6vDVQ][twitter][0]","searches": [{"query": [{"type": "BooleanQuery","description": "message:some message:number","time_in_nanos": "1873811","breakdown": {"score": 51306,"score_count": 4,"build_scorer": 2935582,"build_scorer_count": 1,"match": 0,"match_count": 0,"create_weight": 919297,"create_weight_count": 1,"next_doc": 53876,"next_doc_count": 5,"advance": 0,"advance_count": 0,"compute_max_score": 0,"compute_max_score_count": 0,"shallow_advance": 0,"shallow_advance_count": 0,"set_min_competitive_score": 0,"set_min_competitive_score_count": 0},"children": [{"type": "TermQuery","description": "message:some","time_in_nanos": "391943","breakdown": {"score": 28776,"score_count": 4,"build_scorer": 784451,"build_scorer_count": 1,"match": 0,"match_count": 0,"create_weight": 1669564,"create_weight_count": 1,"next_doc": 10111,"next_doc_count": 5,"advance": 0,"advance_count": 0,"compute_max_score": 0,"compute_max_score_count": 0,"shallow_advance": 0,"shallow_advance_count": 0,"set_min_competitive_score": 0,"set_min_competitive_score_count": 0}},{"type": "TermQuery","description": "message:number","time_in_nanos": "210682","breakdown": {"score": 4552,"score_count": 4,"build_scorer": 42602,"build_scorer_count": 1,"match": 0,"match_count": 0,"create_weight": 89323,"create_weight_count": 1,"next_doc": 2852,"next_doc_count": 5,"advance": 0,"advance_count": 0,"compute_max_score": 0,"compute_max_score_count": 0,"shallow_advance": 0,"shallow_advance_count": 0,"set_min_competitive_score": 0,"set_min_competitive_score_count": 0}}]}],"rewrite_time": 51443,"collector": [{"name": "CancellableCollector","reason": "search_cancelled","time_in_nanos": "304311","children": [{"name": "SimpleTopScoreDocCollector","reason": "search_top_hits","time_in_nanos": "32273"}]}]}],"aggregations": []}]}
}

具体的实例分析后面补充

15.profile-api相关推荐

  1. 开发者都应该知道的15个API

    从AI到AR到运输和电话,这些Web API为开发人员提供了各种有趣的可能性. 艾萨克·牛顿说他站在巨人的肩膀上看得更远,对于编写代码的人来说,API就是精华.它们让程序员站在巨人的肩膀上看得更远. ...

  2. AngularJS快速入门指南15:API

    API即Application Programming Interface(应用程序接口). AngularJS全局API AngularJS全局API是一组全局JavaScript函数,用来进行一些 ...

  3. 1-5分层API(Layered APIs)

    Flink provides three layered APIs. Each API offers a different trade-off between conciseness and exp ...

  4. xbox360游戏下载_Xbox Live游戏玩家API

    xbox360游戏下载 My sharpshooter status aside, I've always been surprised upset that Microsoft has never ...

  5. LoRaServer 笔记 2.6 WebUI 中 Rest API 的调用逻辑分析

    文章目录 前言 1 应用相关 ApplicationService 1.1 新建应用 API 示例 API 参数说明 2 设备模板 DeviceProfileService 2.1 设备模板列表 We ...

  6. Xbee Pro 900HP模块的API模式组网配置

    为使无人机编队个体间实现组网通信,需要选用合适的通信模块构建通信网络.前期曾试用ZIGBEE模块(DRF1605),但其传输速度不能令人满意--每秒最快只能接收10个数据包,320个字节,将近2.4K ...

  7. ES profile 性能优化用——返回各个shard的耗时

    Profile API 都说要致富先修路,要调优当然需要先监控啦,elasticsearch在很多层面都提供了stats方便你来监控调优,但是还不够,其实很多情况下查询速度慢很大一部分原因是糟糕的查询 ...

  8. curl不通 k8s_如何利用curl命令访问Kubernetes API server

    API 请求必须使用 JSON 格式来发送.kubectl 的作用是将 yaml 转换为 JSON 格式进行 API 请求. 1.我们从查看 kubectl 的配置文件开始,需要:三个证书和 API ...

  9. ML.NET机器学习、API容器化与Azure DevOps实践(三):RESTful API

    通过上文所述案例,我们已经选择了最优回归算法来预测学生的综合成绩,并且完成了基于训练数据集的预测模型训练.从实现上,训练好的模型被保存成一个ZIP文件,以便在其它项目中直接调用以完成机器学习的实践场景 ...

最新文章

  1. 图解wordpress3.5.1最简单实现伪静态的方法
  2. 云计算精华问答 | 边缘计算、雾计算、霾计算,它们究竟是什么?
  3. 从 Netflix 到 Spring Cloud Alibaba 差距不知一点点
  4. 双向链表示意图_java双向链表示意图
  5. 安全无小事,安全防范从nginx配置做起
  6. 逻辑真题- 19/20年逻辑真题名师讲评 主讲人:王诚
  7. JavaWeb项目打包上线简单流程
  8. R语言使用rgl包的plot3d函数可视化可以交互旋转的3D散点图(Rotating 3D scatter plot produced by the plot3d functio in rgl)
  9. 什么是上行带宽? 什么是下行带宽?
  10. 百度网盘资源转迅雷下载正确打开方式!(更新日期2018年11月24日,亲测可用)
  11. Lua中的os.time和os.date以及时区计算
  12. [ChneChen的随笔]中国文化清单上我们还记得什么
  13. 《白帽子讲Web安全》8-文件上传漏洞
  14. input 起止时间_input时间输入框小解
  15. 如何快速发现panic
  16. Unity对象的简单平移与旋转
  17. 昆明最快dns服务器地址,手机网速最快的dns地址
  18. 怎么下载和安装 eclipse?
  19. 电影票务大排行:猫眼第一,淘票票、格瓦拉分列二、三位!
  20. 2D转换图片放大实用场景(11)

热门文章

  1. Windows I/O模型、同步/异步、阻塞/非阻塞
  2. C语言程序设计 | 模拟实现内存操作函数:strncpy, strncat, strncmp, memcpy, memmove
  3. Java集合框架:ArrayList
  4. 惊!空 struct 地址竟然不相等
  5. 基于Huffman算法的文件解压缩
  6. TencentOCR 斩获 ICDAR 2021 三项冠军
  7. PCIe是什么?PCIe标准和PCIe布线规则总结概述
  8. 如何选择深度学习优化器
  9. redis的事务总结
  10. redis慢查询使用总结