DM 开启relay log 不生效

【 TiDB 使用环境】测试
【 DM 版本】2.0.7
开启relay:worker 机器与source的worker一致。发现未启动relaylog: "relayStatus": null

» query-status -s mysql-expertise_stattax_sbtest
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "no sub task started",
            "sourceStatus": {
                "source": "mysql-expertise_stattax_sbtest",
                "worker": "dm-192.168.22.7-8263",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
            ]
        }
    ]
}
» start-relay  -s mysql-expertise_stattax_sbtest dm-192.168.22.7-8263
{
    "result": true,
    "msg": ""
}
» query-status -s mysql-expertise_stattax_sbtest
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "no sub task started",
            "sourceStatus": {
                "source": "mysql-expertise_stattax_sbtest",
                "worker": "dm-192.168.22.7-8263",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
            ]
        }
    ]
}

官网发现:启动了两个worker。本地测试启动两个,只能启动一个relayLog成功(官网启动两个relayLog)。

https://docs.pingcap.com/zh/tidb/v6.5/relay-log#开启关闭-relay-log

DM集群destroy、重建后,可以成功 :rofl:

参考这个https://docs.pingcap.com/zh/tidb/stable/task-configuration-file-full#完整配置文件示例

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。