drainer 4.0的如何删除,

【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】

[root@123 tidb-data]# tiup cluster display tidb
Starting component cluster: /root/.tiup/components/cluster/v1.3.1/tiup-cluster display tidb
Cluster type: tidb
Cluster name: tidb
Cluster version: v4.0.9
SSH type: builtin
Dashboard URL: http://172.22.6.11:2379/dashboard
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir


172.22.6.11:9093 alertmanager 172.22.6.11 9093/9094 linux/x86_64 inactive /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
172.22.6.11:8249 drainer 172.22.6.11 8249 linux/x86_64 Down /tidb-data/drainer-8249 /tidb-deploy/drainer-8249

想把drainer 删除重建

直接部署提示已经存在了
[root@GZ006011Monitor tidb-data]# tiup cluster start tidb -R drainer -N 172.11.6.11:8249

Starting component cluster: /root/.tiup/components/cluster/v1.3.1/tiup-cluster start tidb -R drainer -N 172.11.6.11:8249

Starting cluster tidb…

  • [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb/ssh/id_rsa.pub

  • [ Serial ] - StartCluster

Starting component drainer

Starting instance drainer 172.11.6.11:8249

Error: failed to start drainer: failed to start: drainer 172.11.6.11:8249, please check the instance’s log(/tidb-deploy/drainer-8249/log) for more detail.: timed out waiting for port 8249 to be started after 2m0s

Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2023-05-25-16-00-38.log.

Error: run /root/.tiup/components/cluster/v1.3.1/tiup-cluster (wd:/root/.tiup/data/TfFmdgE) failed: exit status 1

执行了scale-in 和scale-out吗 启动提示超时是报啥错

tiup cluster start tidb -R drainer -N 172.11.6.123:8249

感觉是这个引起的

可以使用 tiup cluster scale-in 命令将 Drainer 实例从集群中删除,然后再使用 tiup cluster scale-out 命令重新添加 Drainer 实例。

具体操作步骤如下:

  1. 停止 Drainer 实例:

    tiup cluster stop tidb --node 172.22.6.11:8249
    
  2. 删除 Drainer 实例:

    tiup cluster scale-in tidb --node 172.22.6.11:8249
    
  3. 重新添加 Drainer 实例:

    tiup cluster scale-out tidb /path/to/drainer-topology.yaml
    

    其中,/path/to/drainer-topology.yaml 是 Drainer 实例的拓扑文件路径,可以在该文件中指定 Drainer 实例的配置信息,例如 IP 地址、端口号、数据目录等。

找不到,我的ip
但是安装了。

我看报错说是 DestDBType ,你要不提供下drainer 相关配置

当然,如果你确定不要了,你可以选择 destroy --force
注意,这是高危操作,要谨慎

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