Company
Date Published
Author
Zachary Tong
Word count
968
Language
-
Hacker News points
None

Summary

Elasticsearch introduced the Profile API in version 2.2 to provide detailed timing information for search queries, allowing users to identify slow components without relying on intuition or experience. While the API is verbose and generates extensive outputs, it enables users to gather comprehensive diagnostics by collecting timings and method invocation counts for query components across shards and indices. The introduction of the Search Profiler, originally an internal tool, aimed to visualize and interact with these outputs, evolving from a hierarchical tree structure to a more user-friendly hierarchical list-view with percentage bars to effectively identify query hotspots. Since version 5.1, the Search Profiler is included in X-Pack Kibana, allowing users to input search queries and generate visualizations, with interactive features such as collapsing and expanding query timings. It is freely available with any X-Pack license, reflecting the belief that diagnostic tools should be accessible to all users.