Skip to content

Commit 0860c35

Browse files
yikekelilin90
authored andcommitted
op-guide: add description for txn-local-latches (#535)
* tools: add drainer output via: pingcap/docs-cn#795 * op-guide: add description for txn-local-latches via: pingcap/docs-cn#776 * op-guide: address comment Via: #535
1 parent f276a48 commit 0860c35

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

op-guide/tidb-config-file.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,17 @@ The Plan Cache configuration of the `prepare` statement.
201201
- The maximum timeout time when executing a transaction commit
202202
- Default: 41s
203203
- It is required to set this value larger than twice of the Raft election timeout time
204+
205+
### txn-local-latches
206+
207+
Configuration about the transaction latch. It is recommended to enable it when many local transaction conflicts occur.
208+
209+
### `enable`
210+
211+
- To enable
212+
- Default: false
213+
214+
### `capacity`
215+
216+
- The number of slots corresponding to Hash, which automatically adjusts upward to an exponential multiple of 2. Each slot occupies 32 Bytes of memory. If set too small, it might result in slower running speed and poor performance in the scenario where data writing covers a relatively large range (such as importing data).
217+
- Default: 1024000

tools/tidb-binlog-kafka.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ cd tidb-binlog-latest-linux-amd64
9898
```
9999
[syncer]
100100
db-type = "kafka"
101-
101+
102102
# when db-type is kafka, you can uncomment this to config the down stream kafka, or it will be the same kafka addrs where drainer pulls binlog from.
103103
# [syncer.to]
104104
# kafka-addrs = "127.0.0.1:9092"
105105
# kafka-version = "0.8.2.0"
106106
```
107-
107+
108108
The data which outputs to kafka follows the binlog format sorted by ts and defined by protobuf. See [driver](https://github.com/pingcap/tidb-tools/tree/master/tidb_binlog/driver) to access the data and sync to the down stream.
109-
109+
110110
- Deploy Kafka and ZooKeeper cluster before deploying TiDB-Binlog. Make sure that Kafka is 0.9 version or later.
111111
112112
#### Recommended Kafka cluster configuration

0 commit comments

Comments
 (0)