Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Tuning Guide #9067

Merged
merged 47 commits into from
May 11, 2022
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
534c639
initial commit for the performance overview
dbsid Apr 17, 2022
3ff134f
finish the db time and qps part
dbsid Apr 17, 2022
6049428
add duration metrics intro
dbsid Apr 18, 2022
f7f8fd5
add tikv write documents
dbsid Apr 19, 2022
2d0f469
finish the drat version
dbsid Apr 19, 2022
b06aa1f
minor enhancements
dbsid Apr 19, 2022
881d006
review and improvements
dbsid Apr 19, 2022
e6ec90f
split into overview and guideline
dbsid Apr 21, 2022
c7d9882
change filename from guideline to guide
dbsid Apr 21, 2022
1ad2c36
add "tuning by color" method
dbsid Apr 22, 2022
93d8e5a
improve overview
dbsid Apr 22, 2022
32ad89d
minor enhancements
dbsid Apr 22, 2022
5fb2aa9
improvements
dbsid Apr 23, 2022
0df2f85
add doc for performance overview dashboard
dbsid Apr 24, 2022
53ba122
Add TOC entry
dbsid Apr 24, 2022
6c528dc
enhance the dashboard descriptions
dbsid Apr 25, 2022
97557ef
Apply suggestions from code review
qiancai Apr 27, 2022
f38e30d
update_content_from_writing_perspective
qiancai Apr 28, 2022
c9781f4
Update grafana-performance-overview-dashboard.md
qiancai Apr 28, 2022
2f9269e
fix broken links
qiancai Apr 28, 2022
f8c708d
Update grafana-performance-overview-dashboard.md
qiancai Apr 28, 2022
df79a41
update punctuation
qiancai Apr 28, 2022
e314a86
Update performance-tuning-methods.md
dbsid Apr 28, 2022
dbdb072
Merge branch 'performance-overview' of github.com:pingcap/docs-cn int…
dbsid Apr 28, 2022
5987339
Update performance-tuning-methods.md
dbsid Apr 28, 2022
19808d7
Update performance-tuning-methods.md
dbsid Apr 28, 2022
75808aa
Update performance-tuning-methods.md
dbsid Apr 28, 2022
4132a68
Update performance-tuning-methods.md
dbsid Apr 28, 2022
990814a
add example 4 for db time overview
dbsid Apr 29, 2022
badabea
Update performance-tuning-methods.md
dbsid Apr 29, 2022
1eb9f0f
Update performance-tuning-methods.md
dbsid Apr 29, 2022
2190ca6
fix CI error
qiancai Apr 29, 2022
683a48b
fix the wrong image for prepared_statement_no_plan_cache
dbsid May 5, 2022
8899911
update performance-tuning-overview.md
Yui-Song May 5, 2022
96b01da
update grafana-performance-overview-dashboard.md
Yui-Song May 5, 2022
0aec069
update performance-tuning-methods.md
Yui-Song May 5, 2022
d6c10a6
Update performance-tuning-methods.md
Yui-Song May 6, 2022
3e0ea40
fix link error
Yui-Song May 6, 2022
a91db20
Revert "fix link error"
Yui-Song May 6, 2022
aa2047d
update dashboard-diagnostics-time-relation.png
Yui-Song May 10, 2022
2e793e5
update color description for db time by sql type, add description for…
dbsid May 10, 2022
84d2aa4
fix link
Yui-Song May 10, 2022
d2d985b
Merge branch 'performance-overview' of https://github.com/pingcap/doc…
Yui-Song May 10, 2022
c025643
correct the picture due the color change of commit
dbsid May 10, 2022
8759a4b
Update performance-tuning-methods.md
dbsid May 11, 2022
a602967
minor wording updates
qiancai May 11, 2022
44bae50
fix a broken link and make some minor wording changes
qiancai May 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update performance-tuning-methods.md
  • Loading branch information
dbsid committed May 11, 2022
commit 8759a4b3dec4de3a4a15b2f2d235b3e2247ac6b3
6 changes: 3 additions & 3 deletions performance-tuning-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ Performance Overview 面板提供了以下三个面积堆叠图,帮助你了
- CPS By Type:CPS 表示 Command Per Second,Command 代表 MySQL 协议的命令类型。同样一个查询语句可以通过 query 或者 prepared statement 的命令类型发送到 TiDB。
- Queries Using Plan Cache OPS:TiDB 集群每秒命中执行计划缓存的次数。执行计划缓存只支持 prepared statement 命令。TiDB 开启执行计划缓存的情况下,存在三种使用情况:

- 完全无法命中执行计划缓存:每秒命中次数为 0,因为应用使用 query 命令,或者每次 StmtExecute 执行之后调用 StmtClose 命令,导致缓存的执行计划被清理。
- 完全命中执行计划缓存:每秒命中次数等于命令 StmtExecute 每秒执行次数。
- 部分命中执行计划缓存:每秒命中次数小于命令 StmtExecute 每秒执行次数,执行计划缓存目前存在一些限制,比如不支持子查询,该类型的 SQL 执行计划无法被缓存。
- 完全无法命中执行计划缓存:每秒命中次数为 0,因为应用使用 query 命令,或者每次 StmtExecute 执行之后调用 StmtClose 命令,导致缓存的执行计划被清理。
- 完全命中执行计划缓存:每秒命中次数等于命令 StmtExecute 每秒执行次数。
- 部分命中执行计划缓存:每秒命中次数小于命令 StmtExecute 每秒执行次数,执行计划缓存目前存在一些限制,比如不支持子查询,该类型的 SQL 执行计划无法被缓存。

**示例 1:TPC-C 负载**

Expand Down