[官方文档
]:TiCDC 安装部署与集群运维
[TiDB Cluster 单机集群部署
]:部署方法
1.TiCDC 集群部署
配置文件
集群部署过程
验证
1.同步任务-新建
tiup cdc cli changefeed create --pd=http://127.0.0.1:2379 --sink-uri="mysql://root:******@${ip}:3306/" --changefeed-id="simple-replication-task" --sort-engine="unified"
查看同步任务
可测试操作:修改、删除、添加列、改变字段长度、删除字段、新建表
2.同步任务-暂停
tiup cdc cli changefeed pause --pd=http://127.0.0.1:2379 --changefeed-id simple-replication-task
3.同步任务-恢复
tiup cdc cli changefeed resume --pd=http://127.0.0.1:2379 --changefeed-id simple-replication-task
4.同步任务-删除
tiup cdc cli changefeed remove --pd=http://127.0.0.1:2379 --changefeed-id simple-replication-task
5.MySQL同步测试
可测试操作:修改、删除、添加列、改变字段长度、删除字段、新建表