-
Notifications
You must be signed in to change notification settings - Fork 1.2k
cdc: add cyclic replication doc #3666
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
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
|
PTAL, thanks! |
ticdc/manage-ticdc.md
Outdated
| {{< copyable "shell-regular" >}} | ||
|
|
||
| ```shell | ||
| # 在 TiDB 集群 A 上创建表数据表。 |
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 集群 A 上创建表数据表。 | |
| # 在 TiDB 集群 A 上创建标记数据表。 |
ditto for following two comments
ticdc/manage-ticdc.md
Outdated
| --pd="http://${PD_B_HOST}:${PD_B_PORT}" \ | ||
| --cyclic-replica-id 2 \ | ||
| --cyclic-filter-replica-ids 3 \ | ||
| --cyclic-sync-ddl false |
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.
这里和示例图不一致,B 也是需要开启 sync-ddl 的?
ticdc/manage-ticdc.md
Outdated
|
|
||
| ### 环形同步使用限制 | ||
|
|
||
| 1. 环形复制功能使用到的表急表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 |
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.
| 1. 环形复制功能使用到的表急表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 | |
| 1. 环形复制功能使用到的标记表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 |
ticdc/manage-ticdc.md
Outdated
| 3. 开启环形复制的数据表表必须在创建环形同步任务前创建完毕。 | ||
| 4. 开启环形复制后,不能创建一个会被环形同步任务同步的表。 | ||
| 5. 如果想在线 DDL,需要确保: | ||
| 1. 多个集群中有且仅有一个集群的 CDC(s) 开启了 cyclic-sync-ddl,例如示例中的 A 集群 CDC |
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.
在线 DDL 是需要保证“构成一个单向同步链表,不能成环” ?
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
amyangfei
left a comment
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
Co-authored-by: Lilian Lee <lilin@pingcap.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
lilin90
left a comment
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
|
/merge |
|
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-4.0 in PR #3700 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
What is changed, added or deleted? (Required)
Add document about TiCDC cyclic replication feature.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?