TiDB 可观测性的设计与实现 陈霜crazycs520 ## Agenda • TopSQL: Bind SQL With CPU Resources • System Table ☐ SQL Statements Implementation ☐ SLOW QUERY Implementation • Continuous Profiling Implementation ## TopSQL: Bind SQL With CPU c/p6_1.jpg)  ## TopSQL   ## TopSQL  ✓ 实现对PostgreSQL/PolarDB的监控管理 ✓ 对PostgreSQL/PolarDB的TopSQL的管理 ## • 架构说明 ✓ 有一台机器上部署的CLup管理节点,这个管理节点提供WEB管理界面统一管理所有的PostgreSQL/PolarDB数据库。 ✓ 每台数据库主机上部署clu0 码力 | 34 页 | 3.59 MB | 1 年前3
TiDB v8.4 中文手册Tidb_cpu_time 和 Tikv_cpu_time,显示被捕捉到的 SQL 语句消耗 CPU 的时间。 其中,TiKV的CPU时间默认显示。采集TiDB的CPU时间会引入额外开销(约 8%),因此仅在开启TopSQL特性时, TiDB的CPU时间才会显示为实际值,否则始终显示为0。 更多信息,请参考 ['INFORMATION_SCHEMA.PROCESSLIST'] (#processlist) $\hookrightarrow$ QUERY'] (#slow_query)。 ## Top SQL 支持按表或数据库维度查看 CPU 时间的聚合结果 #55540 @nolouch 在v8.4.0之前,TopSQL以SQL为单位来聚合CPU时间。如果CPU时间不是由少数几个SQL贡献,按SQL聚合并不能有效发现问题。从v8.4.0开始,你可以选择ByTABLE或者ByDB聚合CPU时间。在多系统融合的场景0 码力 | 5072 页 | 104.05 MB | 1 年前3
TiDB v6.1 Documentationsystem variable max_allowed_packet does not take effect #31422 - Fix the issue of memory leak in the TopSQL module #34525 #34502 - Fix the issue that the Plan Cache might be wrong on the PointGet plan #323710 码力 | 4487 页 | 84.44 MB | 2 年前3
TiDB v6.1 中文手册的问题,在 Grafana dashboard 中查看慢查询记录的时候可能会触发该问题 #33893 - 修复系统变量 max_allowed_packet 不生效的问题 #31422 - 修复 TopSQL 模块的内存泄露问题 #34525,#34502 - 修复 Plan Cache 对于 PointGet 计划有时候会出错的问题 #32371 - 修复在RC隔离情况下Plan Cache启用时可能导致查询结果错误的问题0 码力 | 3572 页 | 84.36 MB | 2 年前3
TiDB v7.1 中文手册Dashboard 后,在左侧导航栏中点击 Top SQL。 961 图 95: Top SQL • 在浏览器中访问 http://127.0.0.1:2379/dashboard/#/topsql(将 127.0.0.1:2379 替换为实际 PD 实例地址和端 口)。 10.3.3.3 启用 Top SQL 注意: 要使用 Top SQL,你需要使用 TiUP(v1.9.0 及以上版本)或 Dashboard 后,在左侧导航栏中点击 Top SQL。 3521 图 523: Top SQL • 在浏览器中访问 http://127.0.0.1:2379/dashboard/#/topsql(将 127.0.0.1:2379 替换为实际 PD 实例地址和端 口)。 14.12.1.6.3 启用 Top SQL 注意: 要使用 Top SQL,你需要使用 TiUP(v1.9.0 及以上版本)或 的问题,在 Grafana dashboard 中查看慢查询记录的时候可能会触发该问题 #33893 – 修复系统变量 max_allowed_packet 不生效的问题 #31422 – 修复 TopSQL 模块的内存泄露问题 #34525,#34502 – 修复 Plan Cache 对于 PointGet 计划有时候会出错的问题 #32371 – 修复在 RC 隔离情况下 Plan Cache0 码力 | 4369 页 | 98.92 MB | 2 年前3
TiDB v7.6 中文手册c3dbbe298f32df0b2a1d03/p978_3.jpg) 图 95: Top SQL - 在浏览器中访问 http://127.0.0.1:2379/dashboard/#/topsql(将 127.0.0.1:2379 替换为实际 PD 实例地址和端口)。 ##### 10.3.3.3 启用 Top SQL 注意: 要使用 Top SQL,你需要使用 TiUP(v1.9 dbbe298f32df0b2a1d03/p3716_3.jpg) 图 523: Top SQL - 在浏览器中访问 http://127.0.0.1:2379/dashboard/#/topsql(将 127.0.0.1:2379 替换为实际 PD 实例地址和端口)。 ###### 14.14.1.6.3 启用 Top SQL 注意: 要使用 Top SQL,你需要使用 TiUP(v1 的问题,在 Grafana dashboard 中查看慢查询记录的时候可能会触发该问题 #33893 - 修复系统变量 max_allowed_packet 不生效的问题 #31422 - 修复 TopSQL 模块的内存泄露问题 #34525,#34502 - 修复 Plan Cache 对于 PointGet 计划有时候会出错的问题 #32371 - 修复在 RC 隔离情况下 Plan Cache0 码力 | 4666 页 | 101.24 MB | 2 年前3
TiDB v8.4 Documentationed51cc26a80e6f/36f22900.png) Figure 153: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and ed51cc26a80e6f/914e9c19.png) Figure 456: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and system variable max_allowed_packet does not take effect #31422 - Fix the issue of memory leak in the TopSQL module #34525 #34502 - Fix the issue that the Plan Cache might be wrong on the PointGet plan #323710 码力 | 6705 页 | 110.86 MB | 1 年前3
TiDB v8.5 Documentationd3861ebe921252/46cff560.png) Figure 183: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and d3861ebe921252/914e9c19.png) Figure 454: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and system variable max_allowed_packet does not take effect #31422 - Fix the issue of memory leak in the TopSQL module #34525 #34502 - Fix the issue that the Plan Cache might be wrong on the PointGet plan #323710 码力 | 6730 页 | 111.36 MB | 1 年前3
TiDB v8.3 Documentation53eceaf645a670e4f/p29_2.png) Figure 152: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and ceaf645a670e4f/914e9c19.png) Figure 455: Top SQL - Visit http://127.0.0.1:2379/dashboard/#/topsql in your browser. Replace 127.0.0.1:2379 $ \hookrightarrow $ with the actual PD instance address and system variable max_allowed_packet does not take effect #31422 - Fix the issue of memory leak in the TopSQL module #34525 #34502 - Fix the issue that the Plan Cache might be wrong on the PointGet plan #323710 码力 | 6606 页 | 109.48 MB | 1 年前3
共 11 条
- 1
- 2













