TiDB v5.1 Documentation· · · · · · · · · · · · · · · · · · 413 8.5 Identify Expensive Queries · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 8.5.1 Expensive query log example · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 8.5.2 Fields description · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 414 8.6 [wait_max_time=0.002s] [wait_max_addr �→ =10.0.1.9:20160] [stats=t:pseudo] [conn_id=60026] [user=root] [ 413 �→ database=test] [table_ids="[122]"] [txn_start_ts=414420273735139329] �→ [mem_max="1035 Bytes (10 码力 | 2745 页 | 47.65 MB | 1 年前3
TiDB中文技术文档Louis louishust luckcolors Lynn Mae Huang maiyang maxwell mengshangqi Michael Belenchenko mo2zie 1.0 - 413 - 本文档使用 书栈(BookStack.CN) 构建 morefreeze MQ mxlxm Neil Shen netroby ngaut Nicole Nie nolouch onlymellb0 码力 | 444 页 | 4.89 MB | 6 月前3
TiDB v5.2 Documentation2.7 Identify problematic SQL statements · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 7 8.3 Analyze Slow Queries · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · from the user’s SQL. admin show slow top 3 admin show slow top internal 3 admin show slow top all 5 413 TiDB stores only a limited number of slow query records because of the limited memory. If the value TiDB/PD/TiKV process. The maximum CPU usage of the process is 100% * the number of CPU logical cores. Figure 413: Instance CPU Usage report Instance Memory Usage The Instance Memory Usage table shows the average0 码力 | 2848 页 | 47.90 MB | 1 年前3
TiDB v5.4 中文手册· · · · · · · · · · · · · · · · 413 8.10.1 常见热点场景· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 8.10.2 确定存在热点问题 · · · · · · · · 编码做了一点调整: Key: tablePrefix{tableID}_indexPrefixSep{indexID}_indexedColumnsValue_rowID Value: null 413 8.10.1.2 表热点 从 TiDB 编码规则可知,同一个表的数据会在以表 ID 开头为前缀的一个 range 中,数据的顺序按照 RowID 的值 顺序排列。在表 insert 的过程中如果 上图信息为该项监控的注释说明,包括总耗时、总次数、平均耗时和平均 P99、P90、P80 耗时。 监控项之间的父子关系 下面以 tidb_execute 监控为例介绍该监控项相关的子节点: 2384 图 413: 监控关系图 tidb_execute 节点注释 可以看到,tidb_execute 包含两个子节点,分别是: • pd_start_tso_wait:等待事务 start_tso 的耗时,其总耗时是0 码力 | 2852 页 | 52.59 MB | 1 年前3
TiDB v6.5 中文手册· · · · · · · · · · · · · · · · 413 4.10.1 SQL 或事务问题· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 4.10.2 结果集不稳定· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 4.10.3 TiDB 中的各种超时· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 见事务错误处理。 4.10.1.3 推荐阅读 • 不支持的功能特性 • 集群管理 FAQ • TiDB 产品 FAQ 4.10.2 结果集不稳定 本章将叙述结果集不稳定错误的处理办法。 413 4.10.2.1 group by 出于便捷的考量,MySQL “扩展” 了 group by 语法,使 select 子句可以引用未在 group by 子句中声明的非聚集字 段,也就是 non-full0 码力 | 4049 页 | 94.00 MB | 1 年前3
TiDB v8.0 Documentationdocumentation. 2.2.1.4 Availability • The proxy component TiProxy becomes generally available (GA) #413 @djshow832 @xhebox TiDB v7.6.0 introduces the proxy component TiProxy as an experimental feature 411 Tool name Minimum sup- ported ver- sion Description 4.6.4.5 Compatibility with SQL 412 413 Feature name Description Feature name Description FLASHBACK �→ �→ TABLE �→ FLASHBACK �→ �→ TABLE Commit log duration per server: The time consumed by Raft to commit logs per TiKV instance Figure 413: TiKV Dashboard - Raft IO metrics 14.10.5.1.8 Raft process • Ready handled: The number of handled0 码力 | 6327 页 | 107.55 MB | 1 年前3
TiDB v8.0 中文手册Used (LRU) 算法缓存所需的表, 有效降低 schema 信息占用的内存。 更多信息,请参考用户文档。 2.2.1.4 高可用 • 代理组件 TiProxy 成为正式功能 (GA) #413 @djshow832 @xhebox TiDB v7.6.0 引入了代理组件 TiProxy 作为实验特性。TiProxy 是 TiDB 的官方代理组件,位于客户端和 TiDB server 之间,为 3.4 事务冲突 关于如何定位和解决事务冲突,请参考TiDB 锁冲突问题处理。 4.9.3.5 Java 数据库应用开发最佳实践 TiDB 最佳实践系列(五)Java 数据库应用开发指南。 413 4.9.3.5.1 推荐阅读 • TiDB 最佳实践系列(一)高并发写入常见热点问题及规避方法。 4.9.4 索引的最佳实践 本章会介绍在 TiDB 中使用索引的一些最佳实践。 4.9.4 411: 设置按钮 设置页面如下图所示: 3832 图 412: 设置页面 通过开关设定好是否开启收集,并点击保存 (Save) 后生效。开启后,在界面上观察到工具栏已经可以使用: 图 413: 工具栏 功能开启后,后台会持续收集数据,稍等一段时间即可看到热力图。 观察某一段时间或者 Region 范围 打开流量可视化页面时,默认会显示最近六小时整个数据库内的热力图。其中,越靠近右侧(当前时间)时,0 码力 | 4805 页 | 101.28 MB | 1 年前3
TiDB v7.6 Documentationsee documentation. 40 2.2.1.4 Availability • Support the proxy component TiProxy (experimental) #413 @djshow832 @xhebox TiProxy is the official proxy component of TiDB, located between the client and 2000 | | 111453184 | Jeffrey Brekke | 2000 | +-----------+------------------------+------------+ 413 10 rows in set (0.11 sec) With the LIMIT statement, the query time is significantly reduced from Commit log duration per server: The time consumed by Raft to commit logs per TiKV instance Figure 413: TiKV Dashboard - Raft IO metrics 14.10.5.1.8 Raft process • Ready handled: The number of handled0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v5.3 Documentationthe checkpoint is not updated. – This issues has been fixed in v3.0.4. See case-741 in Chinese. 413 • 6.1.11 Any component panics. – Report a bug. 8.1.6.2 6.2 Data Migration • 6.2.1 TiDB Data Migration (MAX), and minimum value (MIN) of memory bytes occupied by each TiDB/PD/TiKV process. 2437 Figure 413: Instance memory usage report TiKV Thread CPU Usage The TiKV Thread CPU Usage table shows the average0 码力 | 2996 页 | 49.30 MB | 1 年前3
TiDB v8.2 中文手册· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 413 4.11 引用文档 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 需要注意的是,此变量的配置是立刻影响全局的,调大它会增加当前所有快照的生命时长,调小它也会立即 缩短所有快照的生命时长。过多的 MVCC 版本会影响 TiDB 的集群性能,因此在使用后,需要及时把此变量调 整回之前的设置。 413 Tip: 特别地,在 Dumpling 备份时,如果导出的数据量少于 1 TB 且导出的 TiDB 版本为 v4.0.0 或更新 版本,并且 Dumpling 可以访问 TiDB 集群的 PD 411: 设置按钮 设置页面如下图所示: 3958 图 412: 设置页面 通过开关设定好是否开启收集,并点击保存 (Save) 后生效。开启后,在界面上观察到工具栏已经可以使用: 图 413: 工具栏 功能开启后,后台会持续收集数据,稍等一段时间即可看到热力图。 观察某一段时间或者 Region 范围 打开流量可视化页面时,默认会显示最近六小时整个数据库内的热力图。其中,越靠近右侧(当前时间)时,0 码力 | 4987 页 | 102.91 MB | 10 月前3
共 31 条
- 1
- 2
- 3
- 4













