Skip to content

Commit

Permalink
Refine slow log description (#18127) (#18131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 26, 2024
1 parent a341461 commit 5616f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ Query OK, 0 rows affected, 1 warning (0.00 sec)
- 默认值:`300`
- 范围:`[-1, 9223372036854775807]`
- 单位:毫秒
- 输出慢日志的耗时阈值。当查询大于这个值,就会当做是一个慢查询,输出到慢查询日志。默认为 300 ms。
- 输出慢日志的耗时阈值默认为 300 ms。如果查询耗时大于这个值,会视作一个慢查询,并记录到慢查询日志。注意,当日志的输出级别 [`log.level`](/tidb-configuration-file.md#level) 是 `"debug"` 时,所有查询都会记录到慢日志,不受该变量的限制
示例:
Expand Down
4 changes: 2 additions & 2 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/
### `slow-threshold`

+ 输出慢日志的耗时阈值。
+ 默认值:300ms
+ 当查询大于这个值,就会当做是一个慢查询,输出到慢查询日志
+ 默认值:300
+ 如果查询耗时大于这个值,会视作一个慢查询,并记录到慢查询日志。注意,当日志的输出级别 [`log.level`](#level)`"debug"` 时,所有查询都会记录到慢日志,不受该参数的限制

### `record-plan-in-slow-log`

Expand Down

0 comments on commit 5616f7f

Please sign in to comment.