Skip to content

Conversation

@overvenus
Copy link
Member

What is changed, added or deleted? (Required)

Add document about TiCDC cyclic replication feature.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v4.0 (TiDB 4.0 versions)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

What is the related PR or file link(s)?

  • This PR is translated from: N/A
  • Other reference link(s): N/A

Signed-off-by: Neil Shen <overvenus@gmail.com>
@overvenus overvenus requested a review from amyangfei June 15, 2020 12:03
@yikeke yikeke requested a review from lilin90 June 15, 2020 12:06
@yikeke yikeke added needs-cherry-pick-4.0 translation/welcome Waits for a contributor to translate this PR and create a PR to the pingcap/docs-cn repository. translation/doing This PR’s assignee is translating this PR. and removed translation/welcome Waits for a contributor to translate this PR and create a PR to the pingcap/docs-cn repository. labels Jun 15, 2020
@overvenus
Copy link
Member Author

PTAL, thanks!

{{< copyable "shell-regular" >}}

```shell
# 在 TiDB 集群 A 上创建表数据表。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里和示例图不一致,B 也是需要开启 sync-ddl 的?


### 环形同步使用限制

1. 环形复制功能使用到的表急表必须在创建环形同步任务前使用 `cdc cli changefeed cyclic create-marktables` 创建。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

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>
Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amyangfei amyangfei added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 17, 2020
@lilin90 lilin90 added the status/require-change Needs the author to address comments. label Jun 17, 2020
overvenus and others added 3 commits June 17, 2020 19:58
Co-authored-by: Lilian Lee <lilin@pingcap.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
Copy link
Member

@lilin90 lilin90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lilin90 lilin90 added the status/LGT2 Indicates that a PR has LGTM 2. label Jun 17, 2020
@lilin90
Copy link
Member

lilin90 commented Jun 17, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 17, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit ea44d77 into pingcap:master Jun 17, 2020
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>
@ti-srebot
Copy link
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>
@yikeke yikeke added size/large Changes of a large size. and removed status/LGT1 Indicates that a PR has LGTM 1. status/require-change Needs the author to address comments. labels Jun 19, 2020
@TomShawn TomShawn added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/large Changes of a large size. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants