Skip to content

Commit

Permalink
add notice about scaling in pd node (#6099) (#6219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Aug 30, 2021
1 parent 88f168d commit 7fb33f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scale-tidb-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ If you want to remove a TiKV node from the `10.0.1.5` host, take the following s
>
> You can take similar steps to remove the TiDB and PD node.

> **Note:**
>
> The PD Client in TiKV caches the list of PD nodes.
>
> + In versions earlier than v4.0.3, TiKV does not automatically and regularly update the cache of the PD node list. The cache is updated only after the PD leader switches or TiKV restarts to load the latest configuration. To avoid the issue of an expired list of PD nodes cached by TiKV, the PD cluster should contain at least one PD node that existed before the scaling-in or scaling-out. If this condition is not met, you need to manually perform the PD leader transfer to update the PD cache list in TiKV.
>
> + Since v4.0.3, TiKV has a mechanism to automatically and regularly update PD nodes, which can help mitigate the issue of an expired list of PD nodes cached by TiKV. However, after scaling out PD, you should try to avoid directly removing all PD nodes at once that existed before the scaling. If necessary, before making all the previously existing PD nodes offline, make sure to switch the PD leader to a newly added PD node.

1. View the node ID information:

{{< copyable "shell-regular" >}}
Expand Down

0 comments on commit 7fb33f5

Please sign in to comment.