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 3 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
11 changes: 6 additions & 5 deletions ticdc/ticdc-changefeed-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ 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。
#
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
# 默认为 "false"。设置为 "true" 以打开该功能。
enable-table-across-nodes = false
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
# 在一张表上启用该功能,该表最少需要包含的 Region 个数。
overvenus marked this conversation as resolved.
Show resolved Hide resolved
region-threshold = 100000

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

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

配置样例如下所示:

```toml
[scheduler]
region-per-span = 50000
enable-table-across-nodes = true
region-threshold = 100000
```