-
Notifications
You must be signed in to change notification settings - Fork 1.2k
doc: complementary to desc of in-mem-slow-query-topn-num
and and in-mem-slow-query-recent-num
.
#20521
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
Open
AilinKid
wants to merge
1
commit into
master
Choose a base branch
from
fix-in-mem-num
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+10
−2
Open
doc: complementary to desc of in-mem-slow-query-topn-num
and and in-mem-slow-query-recent-num
.
#20521
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -906,12 +906,20 @@ TiDB 服务状态相关配置。 | |||||||||||||||||||||
|
||||||||||||||||||||||
### `in-mem-slow-query-topn-num` <span class="version-mark">从 v7.3.0 版本开始引入</span> | ||||||||||||||||||||||
|
||||||||||||||||||||||
+ 缓存在内存中的最慢的 slow query 个数。 | ||||||||||||||||||||||
> **内存查询优先**: 当查询 `INFORMATION_SCHEMA.SLOW_QUERY` 表时候,TiDB 首先检查内存堆上缓存的慢查询,不行然后再去解析节点上的慢查询日志文件,`in-mem-slow-query-topn-num` 提供了指向内存堆中最慢的 N 个慢查询的堆内存缓存数量,该内存堆可以用来提供最慢慢查询的快速内存访问,从而避免解析日志文件。 | ||||||||||||||||||||||
|
||||||||||||||||||||||
> **内存消耗**: 该参数用于在快速检索最慢 N 个特征性慢查询的能力与慢查询堆内存占用控制之间实现平衡。设置的太高会导致内存堆在收集慢查询上消耗过多内存,设置太小可能会导致无法提供足够有效的最慢历史慢查询上下文,从而导致需要解析全量的日志文件来获取完整的慢查询信息。 | ||||||||||||||||||||||
|
||||||||||||||||||||||
+ 每个 tidb 实例缓存在内存堆中的最慢的 slow query 个数。 | ||||||||||||||||||||||
+ 默认值:30 | ||||||||||||||||||||||
|
||||||||||||||||||||||
### `in-mem-slow-query-recent-num` <span class="version-mark">从 v7.3.0 版本开始引入</span> | ||||||||||||||||||||||
|
||||||||||||||||||||||
+ 缓存在内存中的最近使用的 slow query 个数。 | ||||||||||||||||||||||
> **内存查询优先**: 当查询 `INFORMATION_SCHEMA.SLOW_QUERY` 表时候,TiDB 首先检查内存堆上缓存的慢查询,不行然后再去解析节点上的慢查询日志文件,`in-mem-slow-query-recent-num` 提供了指向内存堆中最近的 N 个慢查询的堆内存缓存数量,该内存堆可以用来提供最近慢查询的快速内存访问,从而避免解析日志文件。 | ||||||||||||||||||||||
|
||||||||||||||||||||||
> **内存消耗**: 该参数用于在快速检索最近 N 个特征性慢查询的能力与慢查询堆内存占用控制之间实现平衡。设置的太高会导致内存堆在收集慢查询上消耗过多内存,设置太小可能会导致无法提供足够有效的最近历史慢查询上下文,从而导致需要解析全量的日志文件来获取完整的慢查询信息。 | ||||||||||||||||||||||
|
||||||||||||||||||||||
+ 每个 tidb 实例缓存在内存堆中的最近使用的 slow query 个数。 | ||||||||||||||||||||||
Comment on lines
+918
to
+922
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
+ 默认值:500 | ||||||||||||||||||||||
|
||||||||||||||||||||||
### `tidb_expensive_query_time_threshold` | ||||||||||||||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.