From 44f91b63f810b8b0034b9450e16cc77196d1e855 Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Fri, 13 Mar 2020 09:43:10 +0800 Subject: [PATCH 1/2] reference/configuration: add description about TiDB txn-total-size-limit --- reference/configuration/tidb-server/configuration-file.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reference/configuration/tidb-server/configuration-file.md b/reference/configuration/tidb-server/configuration-file.md index 852d74aa9ac33..7f2e3ac2a1c0a 100644 --- a/reference/configuration/tidb-server/configuration-file.md +++ b/reference/configuration/tidb-server/configuration-file.md @@ -254,6 +254,12 @@ Configuration items related to performance. - Default value: `5000` - If a transaction does not roll back or commit after the number of statements exceeds `stmt-count-limit`, TiDB returns the `statement count 5001 exceeds the transaction limitation, autocommit = false` error. This configuration takes effect **only** in the retriable optimistic transaction. If you use the pessimistic transaction or have disabled the transaction retry, the number of statements in a transaction is not limited by this configuration. +### `txn-total-size-limit` + +- The size limit of a transaction. +- Default value: `104857600` +- The total key-value entries size in bytes should be less than this value. Note, if the `binlog` is enabled, this value should be less than 104857600(100M), because of the limitation of the binlog component; If `binlog` is not enabled, the maximum value of this configuration is 10737418240(10G). + ### `tcp-keep-alive` - Determines whether to enable `keepalive` in the TCP layer. From 3a61188f3c8cd78369d50f2553edcbbd3273b022 Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Wed, 1 Apr 2020 16:04:43 +0800 Subject: [PATCH 2/2] Update reference/configuration/tidb-server/configuration-file.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- reference/configuration/tidb-server/configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/configuration/tidb-server/configuration-file.md b/reference/configuration/tidb-server/configuration-file.md index 7f2e3ac2a1c0a..ea3dd6632c2b1 100644 --- a/reference/configuration/tidb-server/configuration-file.md +++ b/reference/configuration/tidb-server/configuration-file.md @@ -258,7 +258,7 @@ Configuration items related to performance. - The size limit of a transaction. - Default value: `104857600` -- The total key-value entries size in bytes should be less than this value. Note, if the `binlog` is enabled, this value should be less than 104857600(100M), because of the limitation of the binlog component; If `binlog` is not enabled, the maximum value of this configuration is 10737418240(10G). +- The total size of all key-value entries in bytes should be less than this value. Note that if the `binlog` is enabled, this value should be less than `104857600` (which means 100MB), because of the limitation of the binlog component. If `binlog` is not enabled, the maximum value of this configuration is `10737418240` (which means 10GB). ### `tcp-keep-alive`