Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 采用迁移升级的方式,cdc 里面的changefeed 如何迁移,如何确定新集群和旧集群的tso
【TiDB Usage Environment】Production Environment
【TiDB Version】Upgraded from v5.4.3 to v8.1.0
Using a migration upgrade method, set up a new 8.1.0 cluster and then migrate the data from the v5.4.3 cluster.
How to migrate the cdc changefeed in the 5.4.3 cluster? How to determine the start tso of the changefeed in the new cluster?
You can see the TSO of CDC synchronization in many places, such as logs and Grafana monitoring.
If you migrate and upgrade, your 5.4.3 cluster and 8.1.0 cluster data will be completely consistent. Then you can directly use the current TSO to start the CDC changefeed in the 8.1.0 cluster.
It’s fine to go back a bit, anyway, ticdc replication is idempotent.
If it’s not a 24-hour business, create a new task in the new cluster after the data is fully consistent. Otherwise, you can get the start ts from logs, monitoring, etc.