2.1.4 PingCAP Go runtime related problems in TiDB production environmenttransparent huge pages ● GC Related ■ case study: GC sweep caused latency jitter ■ case study: Lock and NUMA aware Agenda Part I - Latency in scheduler ● The client consists of a goroutine and a channel ○ Go GC ● Unexpected latency jitter caused by GC may still exist Conclusion Case study: Lock and NUMA aware ● TiDB server CPU usage is around 60% ● Networking and IO are both OK ● Increase the benchmark columns ● The deployment does not consider NUMA ○ CPU usage is higher when binding CPUs to NUMA nodes Reproduce ● Context Switch, Minor Page Fault, and NUMA Hit Miss are related Reproduce Reproduce0 码力 | 56 页 | 50.15 MB | 6 月前3
TiDB v7.1 中文手册的行为不兼容性的问题 #42439 @qw4990 – 修复 Plan Cache 导致 Decimal 类型的结果出错的问题 #43311 @qw4990 – 修复 NAAJ (null-aware anti join) 中错误的类型检查导致 TiDB panic 的问题 #42459 @AilinKid – 修复 RC 隔离级别下悲观事务中执行失败的 DML 可能导致数据索引不一致的问题 TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 466 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存 回收并引起内存分配延迟。 • 建议将 vm.min_free_kbytes 最小设置为 1048576 KiB(即 1 GiB)。如果安装了 NUMA, 建议设置为 NUMA 节点个数 * 1048576 KiB。 • 对于内存小于 16 GiB 的小规格服务器,保持 vm.min_free_kbytes 的默认值即可。 480 10. 执行以下命令配置用户的0 码力 | 4369 页 | 98.92 MB | 1 年前3
TiDB v8.0 中文手册TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存 回收并引起内存分配延迟。 • 建议将 vm.min_free_kbytes 最小设置为 1048576 KiB(即 1 GiB)。如果安装了 NUMA, 建议设置为 NUMA 节点个数 * 1048576 KiB。 • 对于内存小于 16 GiB 的小规格服务器,保持 vm.min_free_kbytes 的默认值即可。 10. 执行以下命令配置用户的 tidb]# 5.2.8 安装 numactl 工具 本段主要介绍如何安装 NUMA 工具。在生产环境中,因为硬件机器配置往往高于需求,为了更合理规划资源, 会考虑单机多实例部署 TiDB 或者 TiKV。NUMA 绑核工具的使用,主要为了防止 CPU 资源的争抢,引发性能衰退。 注意: 482 • NUMA 绑核是用来隔离 CPU 资源的一种方法,适合高配置物理机环境部署多实例使用。0 码力 | 4805 页 | 101.28 MB | 1 年前3
TiDB v8.1 中文手册TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 451 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存 回收并引起内存分配延迟。 • 建议将 vm.min_free_kbytes 最小设置为 1048576 KiB(即 1 GiB)。如果安装了 NUMA, 建议设置为 NUMA 节点个数 * 1048576 KiB。 • 对于内存小于 16 GiB 的小规格服务器,保持 vm.min_free_kbytes 的默认值即可。 465 10. 执行以下命令配置用户的 tidb]# 466 5.2.8 安装 numactl 工具 本段主要介绍如何安装 NUMA 工具。在生产环境中,因为硬件机器配置往往高于需求,为了更合理规划资源, 会考虑单机多实例部署 TiDB 或者 TiKV。NUMA 绑核工具的使用,主要为了防止 CPU 资源的争抢,引发性能衰退。 注意: • NUMA 绑核是用来隔离 CPU 资源的一种方法,适合高配置物理机环境部署多实例使用。 • 通过0 码力 | 4807 页 | 101.31 MB | 1 年前3
TiDB v7.6 中文手册TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 1 tidb]# 5.2.8 安装 numactl 工具 本段主要介绍如何安装 NUMA 工具。在生产环境中,因为硬件机器配置往往高于需求,为了更合理规划资源, 会考虑单机多实例部署 TiDB 或者 TiKV。NUMA 绑核工具的使用,主要为了防止 CPU 资源的争抢,引发性能衰退。 注意: • NUMA 绑核是用来隔离 CPU 资源的一种方法,适合高配置物理机环境部署多实例使用。 • 通过 exec 命令来进行集群级别管理工 作。 安装 NUMA 工具有两种方法: 方法 1:登录到目标节点进行安装(以 CentOS Linux release 7.7.1908 (Core) 为例)。 sudo yum -y install numactl 478 方法 2:通过 tiup cluster exec 在集群上批量安装 NUMA。 1. 使用 TiUP 安装 TiDB 集群,参考使用0 码力 | 4666 页 | 101.24 MB | 1 年前3
TiDB v7.5 中文手册TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 452 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存 回收并引起内存分配延迟。 • 建议将 vm.min_free_kbytes 最小设置为 1048576 KiB(即 1 GiB)。如果安装了 NUMA, 建议设置为 NUMA 节点个数 * 1048576 KiB。 • 对于内存小于 16 GiB 的小规格服务器,保持 vm.min_free_kbytes 的默认值即可。 466 10. 执行以下命令配置用户的 tidb]# 467 5.2.8 安装 numactl 工具 本段主要介绍如何安装 NUMA 工具。在生产环境中,因为硬件机器配置往往高于需求,为了更合理规划资源, 会考虑单机多实例部署 TiDB 或者 TiKV。NUMA 绑核工具的使用,主要为了防止 CPU 资源的争抢,引发性能衰退。 注意: • NUMA 绑核是用来隔离 CPU 资源的一种方法,适合高配置物理机环境部署多实例使用。 • 通过0 码力 | 4590 页 | 100.91 MB | 1 年前3
TiDB v7.6 DocumentationN: the feature is not supported. • E: the feature is not GA yet (experimental) and you need to be aware of the usage limitations. Experimental features are subject to change or removal without prior notice index on columns that you do not query often. A useful secondary index can speed up queries, but be aware that it also has side effects. Each time you add an index, an additional Key-Value is added when you operate and manage TiDB clusters. 5.1.2.2 Target machines Software Version sshpass 1.06 or later numa 2.0.12 or later tar any 5.1.3 Server recommendations You can deploy and run TiDB on the 64-bit generic0 码力 | 6123 页 | 107.24 MB | 1 年前3
TiDB v7.5 DocumentationN: the feature is not supported. • E: the feature is not GA yet (experimental) and you need to be aware of the usage limitations. Experimental features are subject to change or removal without prior notice index on columns that you do not query often. A useful secondary index can speed up queries, but be aware that it also has side effects. Each time you add an index, an additional Key-Value is added when you operate and manage TiDB clusters. 5.1.2.2 Target machines Software Version sshpass 1.06 or later numa 2.0.12 or later tar any 5.1.3 Server recommendations You can deploy and run TiDB on the 64-bit generic0 码力 | 6020 页 | 106.82 MB | 1 年前3
TiDB v8.2 中文手册TiUP 1.5.0 及以上 注意: 中控机需要部署TiUP 软件来完成 TiDB 集群运维管理。 5.1.2.2 目标主机建议配置软件 软件 版本 sshpass 1.06 及以上 numa 2.0.12 及以上 tar 任意 5.1.3 服务器建议配置 TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器平台或者 ARM 架构的硬件服务器平台。对于开 少,设置得过小,可能会导致内存的申请速度超过后台的回收速度,进而导致内存 回收并引起内存分配延迟。 • 建议将 vm.min_free_kbytes 最小设置为 1048576 KiB(即 1 GiB)。如果安装了 NUMA, 建议设置为 NUMA 节点个数 * 1048576 KiB。 • 对于内存小于 16 GiB 的小规格服务器,保持 vm.min_free_kbytes 的默认值即可。 • tcp_tw_recycle 1 tidb]# 5.2.8 安装 numactl 工具 本段主要介绍如何安装 NUMA 工具。在生产环境中,因为硬件机器配置往往高于需求,为了更合理规划资源, 会考虑单机多实例部署 TiDB 或者 TiKV。NUMA 绑核工具的使用,主要为了防止 CPU 资源的争抢,引发性能衰退。 注意: • NUMA 绑核是用来隔离 CPU 资源的一种方法,适合高配置物理机环境部署多实例使用。 • 通过0 码力 | 4987 页 | 102.91 MB | 10 月前3
TiDB v6.5 DocumentationVariable name Change type Description tidb_enable_gc_aware_memory_track �→ Modified Changes the default value from ON to OFF. Be- cause the GC- aware mem- ory track is found inaccu- rate in tests and causes the mem- ory track is dis- abled. In ad- dition, in Golang 1.19, the mem- ory tracked by the GC- aware mem- ory track does not have much impact on the overall mem- ory. 47 Variable name Change type Description N: the feature is not supported. • E: the feature is not GA yet (experimental) and you need to be aware of the usage limitations. Experimental features are subject to change or removal without prior notice0 码力 | 5282 页 | 99.69 MB | 1 年前3
共 171 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18













