Skip to content

Commit

Permalink
Add a note for oom-action (pingcap#4014)
Browse files Browse the repository at this point in the history
* revert pingcap#3961 pingcap#3982

* Update tidb-configuration-file.md

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
XuHuaiyu and TomShawn authored Jul 21, 2020
1 parent f83821a commit 505a15d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/

### `oom-action`

> **注意:**
>
> 目前 `oom-action` 为实验功能,会对写入过程中的内存进行统计。如果用户希望根据该特性取消写入操作,不建议在生产环境中将参数值配置为 `cancel`
+ 当 TiDB 中单条 SQL 的内存使用超出 `mem-quota-query` 限制且不能再利用临时磁盘时的行为。
+ 默认值:"cancel"(注:v4.0.2 及之前的版本中,默认值为 "log"
+ 默认值:"log"
+ 目前合法的选项为 ["log", "cancel"]。设置为 "log" 时,仅输出日志。设置为 "cancel" 时,取消执行该 SQL 操作,并输出日志。

### `enable-streaming`
Expand Down

0 comments on commit 505a15d

Please sign in to comment.