Skip to content

Commit e36a4d3

Browse files
authored
tiup: upgrade TiFlash first when using TiUP to upgrade (#22924)
1 parent 0ba4abb commit e36a4d3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

keywords.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ The following list shows the keywords in TiDB. Reserved keywords are marked with
595595
- RESTORES
596596
- RESTRICT (R)
597597
- RESUME
598+
- RETURNING
598599
- REUSE
599600
- REVERSE
600601
- REVOKE (R)

upgrade-tidb-using-tiup.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ tiup cluster upgrade <cluster-name> v8.5.0
207207
208208
> **Note:**
209209
>
210-
> + An online upgrade upgrades all components one by one. During the upgrade of TiKV, all leaders in a TiKV instance are evicted before stopping the instance. The default timeout time is 5 minutes (300 seconds). The instance is directly stopped after this timeout time.
210+
> + An online upgrade follows TiUP's fixed component upgrade order. Within each component type, instances are upgraded one by one in a rolling manner:
211+
>
212+
> + **TiFlash**: TiFlash is always upgraded first. If the cluster contains TiFlash, TiUP performs a rolling upgrade of all TiFlash instances before proceeding to other components (such as PD, TiKV, and TiDB). Component types that are not deployed in the cluster are skipped.
213+
> + **TiKV**: During the TiKV upgrade, TiUP evicts all Region leaders from a TiKV store through PD before stopping the instance. The default timeout for leader transfer is 5 minutes (300 seconds). If the timeout is reached, TiUP stops the instance directly without waiting for the leader eviction to complete.
211214
>
212215
> + You can use the `--force` parameter to upgrade the cluster immediately without evicting the leader. However, the errors that occur during the upgrade will be ignored, which means that you are not notified of any upgrade failure. Therefore, use the `--force` parameter with caution.
213216
>

0 commit comments

Comments
 (0)