cdc: add cyclic replication doc#3666
Merged
Merged
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
18 tasks
Member
Author
|
PTAL, thanks! |
amyangfei
reviewed
Jun 16, 2020
| {{< copyable "shell-regular" >}} | ||
|
|
||
| ```shell | ||
| # 在 TiDB 集群 A 上创建表数据表。 |
Contributor
There was a problem hiding this comment.
Suggested change
| # 在 TiDB 集群 A 上创建表数据表。 | |
| # 在 TiDB 集群 A 上创建标记数据表。 |
ditto for following two comments
| --pd="http://${PD_B_HOST}:${PD_B_PORT}" \ | ||
| --cyclic-replica-id 2 \ | ||
| --cyclic-filter-replica-ids 3 \ | ||
| --cyclic-sync-ddl false |
Contributor
There was a problem hiding this comment.
这里和示例图不一致,B 也是需要开启 sync-ddl 的?
|
|
||
| ### 环形同步使用限制 | ||
|
|
||
| 1. 环形复制功能使用到的表急表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 |
Contributor
There was a problem hiding this comment.
Suggested change
| 1. 环形复制功能使用到的表急表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 | |
| 1. 环形复制功能使用到的标记表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。 |
| 3. 开启环形复制的数据表表必须在创建环形同步任务前创建完毕。 | ||
| 4. 开启环形复制后,不能创建一个会被环形同步任务同步的表。 | ||
| 5. 如果想在线 DDL,需要确保: | ||
| 1. 多个集群中有且仅有一个集群的 CDC(s) 开启了 cyclic-sync-ddl,例如示例中的 A 集群 CDC |
Contributor
There was a problem hiding this comment.
在线 DDL 是需要保证“构成一个单向同步链表,不能成环” ?
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
lilin90
requested changes
Jun 17, 2020
Co-authored-by: Lilian Lee <lilin@pingcap.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Member
|
/merge |
Contributor
|
/run-all-tests |
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jun 17, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-4.0 in PR #3700 |
lilin90
pushed a commit
that referenced
this pull request
Jun 18, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Neil Shen <overvenus@gmail.com>
5 tasks
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)?