tidb3.0删除tikv节点

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

  • 【TiDB 版本】:3.0
  • 【问题描述】:执行 ansible-playbook stop.yml -l 172.16.121.231 报错: elapsed: 300 msg: the node_exporter port 9100 is not down 到该节点机器上也停不掉 /usr/local/services/prometheus_exporters/node_exporter-0.14.0.linux-amd64/node_exporter & 进程

systemctl status node_exporter-9100.service ,检查下 node exporter 进程是否有报错,如果有异常可能无法正常 stop service,可以登陆到节点机器上 kill 掉该进程。

[root@iZbp1bhr4680qg66342i70Z ~]# systemctl status node_exporter-9100.service ● node_exporter-9100.service - node_exporter-9100 service Loaded: loaded (/etc/systemd/system/node_exporter-9100.service; disabled; vendor preset: disabled) Active: inactive (dead)

Mar 17 18:46:48 iZbp1bhr4680qg66342i70Z systemd[1]: node_exporter-9100.service failed. Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: node_exporter-9100.service holdoff time over, scheduling restart. Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: Stopped node_exporter-9100 service. Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: Started node_exporter-9100 service. Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z run_node_exporter.sh[13375]: time=“2020-03-17T18:47:04+08:00” level=info msg=“Starting node_exporter (version=0.17.0, branch=HEAD, revision=f6f6194a436b9a63d0439a…orter.go:82” Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z run_node_exporter.sh[13375]: time=“2020-03-17T18:47:04+08:00” level=info msg=“Build context (go=go1.11.2, user=root@322511e06ced, date=20181130-15:51:33)” source=…orter.go:83" Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: node_exporter-9100.service: main process exited, code=exited, status=1/FAILURE Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: Unit node_exporter-9100.service entered failed state. Mar 17 18:47:04 iZbp1bhr4680qg66342i70Z systemd[1]: node_exporter-9100.service failed. Mar 17 18:47:07 iZbp1bhr4680qg66342i70Z systemd[1]: Stopped node_exporter-9100 service. Hint: Some lines were ellipsized, use -l to show in full.

stop service 和 kill 进程 都试过了 ,马上就会重新起来

systemctl disable node_exporter-9100.service 重启节点机器之后,服务不会自动重启;也可以修改 /etc/systemd/system/node_exporter-9100.service 配置,调整 Restart 策略或调大 RestartSec 间隔后,避免 systemd 自动拉起服务。

1赞

已解决 谢谢

:+1: