forked from pingcap/book.tidb.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
website/book-rush/3-manageability/4-observability-performance-tuning/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: TiDB 可观测性 & 性能优化实践 | ||
hide_title: true | ||
--- | ||
|
||
# TiDB 可观测性 & 性能优化实践 | ||
|
||
## 面向非专家的可观测性 | ||
|
||
作为可管理性的一个重要组成部分,可观测性是TiDB 一直以来都在不断加强可观测性。除了其他分布式系统都具备的基本监控和指标,从 4.0 起,TiDB 已陆续发布了诸如 Key Visualizer,SQL 统计和慢查询展示,监控关系图,持续 Profiling 等分布式数据库专有的功能,这些都是对 TiDB 的可观测性很好的补强,能帮助 DBA 和工程师更好地理解自己业务在 TiDB 上的运行情况,以更精准地定位问题和进行系统调优。但这些多多少少是专家向的特性,需要用户对系统有一定的技术理解。 | ||
|
||
|
||
|
||
**而从 6.0 开始,我们引入了更多的非专家向可观测性特性,让对分布式数据库和 TiDB 并不那么了解的用户也能排查系统问题。** | ||
|
||
### Top SQL:面向非专家的 SQL 性能诊断功能 | ||
|
||
Top SQL 是一个面向运维人员及应用开发者的一体化、自助的数据库性能观测和诊断功能,集成于 TiDB Dashboard 图形化界面,在 TiDB v6.0.0 正式发布。 | ||
|
||
与现有 TiDB Dashboard 中各个面向数据库专家的诊断功能不同的是,Top SQL 完全面向非专家:你不需要观察几千张监控图表寻找相关性,也不需要理解诸如 Raft Snapsnot、RocksDB、MVCC、TSO 等 TiDB 内部机制,仅需要知道常见的数据库概念,如索引、锁冲突、执行计划等,就可以通过 Top SQL 快速分析数据库负载情况,并提升应用程序的性能。 | ||
|
||
Top SQL 功能功能默认关闭。启用后,通过 Top SQL 提供的各个 TiDB 或 TiKV 节点实时 CPU 负载情况,你可以直观了解各节点的高 CPU 负载来自哪些 SQL 语句,从而快速分析诸如数据库热点和负载陡升等问题。例如,你可以通过 Top SQL 分析某个 TiKV 节点上正在消耗 90% CPU 负载的 SQL 查询语句的具体内容及执行情况。 | ||
|
||
[用户文档](https://docs.pingcap.com/zh/tidb/v6.0/top-sql) | ||
|
||
|
||
|
||
### 持续性能分析 | ||
|
||
持续性能分析 (Continuous Profiling) 功能集成于 TiDB Dashboard,在 TiDB v6.0.0 中正式发布。该功能默认关闭,启用该功能后,集群将以极低的开销自动收集各 TiDB、TiKV 及 PD 实例每时每刻的性能数据。通过这些历史性能数据,技术专家可以在事后回溯、分析该集群任意时刻(如曾经出现过高内存占用)的问题根因,无需等待问题复现,从而有助于缩短故障诊断时间。 | ||
|
||
[用户文档](https://docs.pingcap.com/zh/tidb/v6.0/continuous-profiling) | ||
|
||
|
||
|
||
## TiDB 性能优化 | ||
|
||
得益于这些最新的可观测性改进,TiDB 的性能分析和优化流程也将会被改进。PingCAP 也开发了一套基于数据库时间的系统优化方法论和颜色优化法,也将在本章节中进行介绍。 | ||
|
||
|
||
|
||
## 投稿指引 | ||
|
||
在此目录下,你可以撰写 TiDB 可观测性和 TiDB 性能优化相关的实践文章。 |
30 changes: 0 additions & 30 deletions
30
website/book-rush/3-manageability/4-observability-practice/index.md
This file was deleted.
Oops, something went wrong.