Is there a TiCDC-based solution for dual data center disaster recovery construction in TiDB?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB双机房灾备建设是否有TiCDC base方案

| username: TiDBer_yyy

The official documentation is quite outdated, from June 2020, and it provides a binlog-based solution. I would like to ask if there is an official TiCDC-based solution available.

| username: 啦啦啦啦啦 | Original post link

Sure.

| username: ddhe9527 | Original post link

It is basically the same as the binlog base solution, just replace TiDB-Binlog with TiCDC, as the two overlap in functionality.

| username: wfxxh | Original post link

The specific solution depends on how you implement it with components. TiCDC can perform cross-data center backups, and that’s how we do it.

| username: cs58_dba | Original post link

For local disaster recovery, we are currently using fiber optics for strong synchronization. For remote locations, we can only do asynchronous synchronization.

| username: TiDBer_yyy | Original post link

Thank you for the reply, we also plan to do the same.

| username: TiDBer_yyy | Original post link

How do you perform data validation?
Data validation for TiDB master-slave cluster will check and obtain upstream and downstream timestamps.

select * from tidb_binlog.checkpoint;

Does ticdc check the checkpoint-ts timestamp?

"status": {
    "resolved-ts": 419036036249681921,
    "checkpoint-ts": 419036036249681921,
    "admin-job-type": 0
  },
| username: TiDBer_yyy | Original post link

Is it a plan for two centers in the same city with four replicas for disaster recovery?

| username: cs58_dba | Original post link

We want one of the three replicas to be a local replica, if the network allows.

| username: eastfisher | Original post link

Add the configuration items --sync-point and --sync-interval to the changefeed in TiCDC to obtain the associated TSO of the upstream and downstream.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.