- 【TiDB 版本】:tidb版本 v3.0.5,binlogctl版本v3.0.5
- 【问题描述】:测试使用tidb-binlog将tidb的数据库同步到MySQL,有部分drainer是前期做的测试已经下线了,状态为offline。如何将offline状态的drainer信息删除呢?
使用binlogctl查看drainer状态如下:
[2019/11/28 16:13:42.704 +08:00] [INFO] [nodes.go:49] [“query node”] [type=drainer] [node=“{NodeID: bw-sys-k8s-v01:8249, Addr: 10.216.91.116:8249, State: offline, MaxCommitTS: 409129954427273218, UpdateTime: 2019-06-20 15:41:50 +0800 CST}”]
[2019/11/28 16:13:42.704 +08:00] [INFO] [nodes.go:49] [“query node”] [type=drainer] [node=“{NodeID: bw-sys-k8s-v02:8249, Addr: 10.216.91.117:8249, State: offline, MaxCommitTS: 409193028436361217, UpdateTime: 2019-06-20 15:41:50 +0800 CST}”]
[2019/11/28 16:13:42.704 +08:00] [INFO] [nodes.go:49] [“query node”] [type=drainer] [node=“{NodeID: bw-sys-k8s-v04:8249, Addr: 10.216.91.119:8249, State: online, MaxCommitTS: 412858140400025601, UpdateTime: 2019-11-28 16:13:42 +0800 CST}”]