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

ticdc: update changefeed scheduler configs #13341

Merged
merged 8 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions ticdc/ticdc-changefeed-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ ignore-insert-value-expr = "price > 1000 and origin = 'no where'" # 忽略包含

[scheduler]
# 将表按 Region 个数划分成多个同步范围,这些范围可由多个 TiCDC 节点同步。
# 注意:
# 1. 横向扩展功能目前为实验特性,不建议在生产环境中使用
# 2. 该参数只在 Kafka changefeed 上生效,暂不支持 MySQL changefeed。
# 3. TiCDC 不会将小于该参数 Region 个数的表划分成多个同步范围
# region-per-span = 50000
# 注意:该功能只在 Kafka changefeed 上生效,暂不支持 MySQL changefeed。
# 默认为 "false"。设置为 "true" 以打开该功能
enable-table-across-nodes = false
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
# 打开该功能后,该功能只对 Region 个数大于 `region-threshold` 值的表生效
region-threshold = 100000

[sink]
# 对于 MQ 类的 Sink,可以通过 dispatchers 配置 event 分发器
Expand Down
14 changes: 11 additions & 3 deletions ticdc/ticdc-sink-to-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,20 @@ partition 分发器用 partition = "xxx" 来指定,支持 default、ts、index

> **警告:**
>
> - 横向扩展功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 [issue](https://github.com/pingcap/tidb/issues) 反馈。
> - TiCDC v6.6.0 仅支持在 Kafka 同步任务上开启大单表的横向扩展功能。
> TiCDC v7.0.0 仅支持在 Kafka 同步任务上开启大单表的横向扩展功能。

配置样例如下所示:

```toml
[scheduler]
region-per-span = 50000
# 设置为 "true" 以打开该功能。
enable-table-across-nodes = true
# 打开该功能后,该功能只对 Region 个数大于 `region-threshold` 值的表生效。
region-threshold = 100000
```

一个表包含的 Region 个数可用如下 SQL 查询:

```sql
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TIKV_REGION_STATUS WHERE DB_NAME="database1" AND TABLE_NAME="table1" AND IS_INDEX=0;
```