Can TiKV scaling down be paused, resumed, and aborted?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tikv缩容,可以暂停恢复和中止吗

| username: chenhanneu

After initiating the TiKV scale-in command, while the region is still being migrated, can the scale-in process be paused, resumed, or terminated?

| username: DBRE | Original post link

If the original node data files and other content have not been deleted, you can change the status of the offline node to up using the following command:

curl -X POST http://${pd_ip}:2379/pd/api/v1/store/${store_id}/state?state=Up
| username: redgame | Original post link


| username: chenhanneu | Original post link

It seems there is no pause.

| username: TiDBer_q9aZZ7Vr | Original post link

Generally, the scaling down is done after the manual migration is completed.

| username: Fly-bird | Original post link

There is no option to pause; you can scale down and then scale up again.

| username: 小于同学 | Original post link

Let’s see which step it has executed to.

| username: porpoiselxj | Original post link

The official documentation does not provide a command to cancel the operation. Stopping halfway carries risks. If you need to recover, you can always scale out again after scaling in.

| username: residentevil | Original post link

The question is very good, I have the same doubt :+1:

| username: TiDBer_aaO4sU46 | Original post link

Kill it, it’s fine, I’ve tried it.

| username: 数据库真NB | Original post link

You should kill the process, and the scaling-down task will stop. There may be unknown risks.

| username: Kongdom | Original post link

It seems not.

| username: zhanggame1 | Original post link

What is the name of the scale-in process?

| username: 小龙虾爱大龙虾 | Original post link

Stopping means canceling the offline process, you can refer to PD Control 使用说明 | PingCAP 文档中心
Pausing and resuming is about controlling the offline speed, just control the PD scheduling.

| username: 哈喽沃德 | Original post link


| username: tidb菜鸟一只 | Original post link

If it is already in the tombstone state, you can only scale down and then scale up again. If it is just offline and not completely down, you can manually bring it online… curl -X POST

| username: h5n1 | Original post link

| username: Kongdom | Original post link

:+1: :+1: :+1: The almighty three axes

| username: zhang_2023 | Original post link


| username: TiDBer_rvITcue9 | Original post link