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

tidb-config-file.md: add description for txn-local-latches #776

Merged
merged 3 commits into from
Jun 29, 2018
Merged
Changes from all commits
Commits
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
14 changes: 13 additions & 1 deletion op-guide/tidb-config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,16 @@ prepare 语句的 Plan cache 设置。

+ 执行事务提交时,最大的超时时间。
+ 默认: 41s
+ 这个值必须是大于两倍 Raft 选举的超时时间。
+ 这个值必须是大于两倍 Raft 选举的超时时间。

## txn-local-latches

事务内存锁相关配置,当本地事务冲突比较多时建议开启。

### `enable`
+ 开启
+ 默认: false

### `capacity`
+ Hash 对应的 slot 数, 会自动向上调整为 2 的指数倍。每个 slot 占 32 Bytes 内存。当写入数据的范围比较广时(如导数据),设置过小会导致变慢,性能下降。
+ 默认:1024000