To improve efficiency, please provide the following information. Clear problem descriptions can be resolved more quickly:
【TiDB Usage Environment】Production
【TiDB Version】4.0.9
【Encountered Problem】
Using the following command for an online upgrade, the speed is very slow. It’s been an hour and the first KV node hasn’t completed the upgrade, stuck at migrating the leader. Is this normal??
tiup cluster upgrade tsp-prod-up-cluster v5.4.2
Check if the speed of leader demotion in the monitoring is normal.
If it’s not normal, adjust configurations like storelimit.
There are many similar issues in the forum, search for them.
Try using evict_leader to force eviction.
Or log it to see if this TiKV is reporting errors.
Alternatively, use pd-ctl to check which regions are left and whether the replicas of these regions are normal.