-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dev: remove transaction kv count limit #1828
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tennix PTAL |
@tennix PTAL |
@DanielZhangQD PTAL |
@@ -110,9 +110,6 @@ TiDB Operator 使用 Helm 部署和管理 TiDB 集群。通过 Helm 获取的配 | |||
| `tidb.txnLocalLatchesCapacity` | 事务内存锁的容量,Hash 对应的 slot 数,会自动向上调整为 2 的指数倍。每个 slot 占 32 Bytes 内存。当写入数据的范围比较广时(如导数据),设置过小会导致变慢,性能下降。<br>如果 TiDB Operator 版本 > v1.0.0-beta.3,请通过 `tidb.config` 配置:<br>`[txn-local-latches]`<br>`capacity = 10240000` | `10240000` | | |||
| `tidb.tokenLimit` | TiDB 并发执行会话的限制<br>如果 TiDB Operator 版本 > v1.0.0-beta.3,请通过 `tidb.config` 配置:<br>`token-limit = 1000` | `1000` | | |||
| `tidb.memQuotaQuery` | TiDB 查询的内存限额,默认 32GB<br>如果 TiDB Operator 版本 > v1.0.0-beta.3,请通过 `tidb.config` 配置:<br>`mem-quota-query = 34359738368` | `34359738368` | | |||
| `tidb.txnEntryCountLimit` | 一个事务中条目的数目限制。如果使用 TiKV 作为存储,则条目表示键/值对。**警告**:不要将该值设置得太大,否则会对 TiKV 集群造成很大影响。请仔细调整此配置<br>如果 TiDB Operator 版本 > v1.0.0-beta.3,请通过 `tidb.config` 配置:<br>`[performance]`<br>`txn-entry-count-limit = 300000` | `300000` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TiDB Operator supports different versions of TiKV, we cannot just remove the config, suggest to make it clear in which TiKV version that this parameter does not need to set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just change the docs for dev
version, it means it will not work in the master branch. I think the Operator should follow the same rule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed with @jackysp , the removed parameters in tidb-cluster.md should not be exposed to users to configure, so it's OK to remove them from the doc.
LGTM
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What is changed, added or deleted?
What is the related PR or file link(s)?
pingcap/tidb#11141
Which version does your change affect?
dev