Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

4.删除 Pump StatefulSet 资源

5.移除pump的pvc资源

6. kubectl run offline-drainer-0 --image=pingcap/tidb-binlog:${tidb_version} --namespace=${namespace} --restart=OnFailure -- /binlogctl 进入到drainer的pod中


Code Block
kubectl -n tidb exec -it tidb-cluster-drainer-0 bash
##如果有多个drainer需要执行多次tidb-cluster-drainer-0:8249
/binlogctl -pd-urls=http://

...

tidb-cluster-pd:2379 -cmd offline-drainer -node-id

...

 tidb-cluster-drainer-0:8249


7.删除 Drainer StatefulSet 资源

...