【 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