You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now it is a bit hard to discover what causes a SQL to run slow in some scenarios. Existing facilities are:
“EXPLAIN ANALYZE”: Only useful to know which executor takes a long time, cannot know RocksDB time, raft time, snapshot time, etc. Cannot inspect a SQL in the past.
Tracing: Only available in TiDB, cannot trace TiKV, and enabling it will greatly affect the performance so that it is rarely useful to inspect a SQL in the past.
Metrics: It displays execution information of all SQLs, when payload is hybrid it is very difficult to figure out. Also metrics are not grouped in a way that we are easy to follow by SQL lifetime.
Log / slow log: Different components output their own logs and it is very hard to link them together. Some logs only contain aggregated data and are not precise enough.
Timeline Tracing adds a new tracing layer to both TiDB and TiKV. The existing low-performance tracing facility in TiDB will be dropped. TiKV traces the time of each specific event in the request and packs them along with the response. Timeline tracing is enabled by default and has <1% performance impact.
Timeline tracing displays trace spans like:
Timeline tracing can be integrated with a visualization of Execution Plan. The execution plan is usually visualized as:
For each executor, users can click and view child spans of the executor. Note that not all spans belong to an executor. Thus an overview of all Timeline tracing spans is still needed.
Category
Feature
Usability
Value
Know where specific SQL performance jitters comes from
Explore how much time it takes for each step for each SQL
Score: 5
Workload Estimation
60 Person Day
The text was updated successfully, but these errors were encountered:
Description
Related project: TiDB, TiKV, raft-rs, Dashboard
For now it is a bit hard to discover what causes a SQL to run slow in some scenarios. Existing facilities are:
Timeline Tracing adds a new tracing layer to both TiDB and TiKV. The existing low-performance tracing facility in TiDB will be dropped. TiKV traces the time of each specific event in the request and packs them along with the response. Timeline tracing is enabled by default and has <1% performance impact.
Timeline tracing displays trace spans like:
![image](https://user-images.githubusercontent.com/1916485/83112013-17367580-a0f8-11ea-8875-27ee90a68ad0.png)
Timeline tracing can be integrated with a visualization of Execution Plan. The execution plan is usually visualized as:
![image](https://user-images.githubusercontent.com/1916485/83112029-1e5d8380-a0f8-11ea-9874-7add6e4d8b54.png)
For each executor, users can click and view child spans of the executor. Note that not all spans belong to an executor. Thus an overview of all Timeline tracing spans is still needed.
Category
Value
Workload Estimation
60 Person Day
The text was updated successfully, but these errors were encountered: