dm-ansible 部署 server_id 超长

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【dm 版本】:1.0.4
  • 【问题描述】:ansible start报fatal: [dm_worker1]: FAILED! => {“changed”: false, “elapsed”: 300, “msg”: “Timeout when waiting for 10.88.20.84:8262”}

dm-worker机器查看dm-worker-stdout.log文件有报错日志: /usr/local/go/src/runtime/asm_amd64.s:1357parse cmd flags err: [code=40003:class=dm-worker:scope=internal:level=medium] toml decode file: toml: value 20200442301 is out of range for uint32

若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

    /usr/local/go/src/runtime/asm_amd64.s:1357parse cmd flags err: [code=40003:class=dm-worker:scope=internal:level=medium] toml decode file: toml: value 20200442301 is out of range for uint32

github.com/pingcap/dm/pkg/terror.(*Error).Delegate /home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/pkg/terror/terror.go:267 github.com/pingcap/dm/dm/worker.(*Config).configFromFile /home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/config.go:251 github.com/pingcap/dm/dm/worker.(*Config).Parse /home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/config.go:187 main.main /home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/cmd/dm-worker/main.go:38 runtime.main /usr/local/go/src/runtime/proc.go:203 runtime.goexit

你好,

  1. 从截图看你的mysql_password 好像格式不太正确,但是这不是问题的原因,只是看到了觉得不正确,

  2. 可以更换下 dm-worker11 server_id 让他变得更短一下。

我重新配置了serverid 1011 但是报错信息里显示的还是以前老的serverid 什么情况?

你好,

  1. 可以修改 dm-worker 目录下 confog/dm-worker.toml 文件,并重启 dm-worker
  2. 修改 inventory 文件,执行 deploy 才将配置文件推送至目标节点