-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add notice about scaling in pd node #6514
Conversation
scale-tidb-using-tiup.md
Outdated
@@ -234,6 +234,10 @@ tiup cluster display <cluster-name> | |||
> | |||
> 移除 TiDB、PD 节点和移除 TiKV 节点的步骤类似。 | |||
|
|||
> **注意:** | |||
> | |||
> TiKV 中的 PD Client 会缓存 PD 节点列表,但目前不会定期自动更新,只有在 PD leader 发生切换或 TiKV 重启加载最新配置后才会更新;为避免 TiKV 缓存的 PD 节点列表过旧的风险,在扩缩容 PD 完成后,PD 集群中应至少包含两个扩缩容操作前就已经存在的 PD 节点成员,如果不满足该条件需要手动执行 PD transfer leader 操作,更新 TiKV 中的 PD 缓存列表。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rleungx 为什么「在扩缩容完成后,至少包含 2 个扩缩容操作前就已经存在的 PD 节点成员」啊~我看这篇文档的示例中,PD 就只有 1 个节点。会不会造成误解?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @AstroProfundis BTW, we need to specify the version of this warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the version affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost all versions before v.4.0.3 and we introduce a new mechanism to reduce the probability after v4.0.3
/rebase |
Co-authored-by: TomShawn <[email protected]>
e1d5dd3
to
13e6b0f
Compare
Co-authored-by: Ryan Leung <[email protected]>
@rleungx: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ee0ea37
|
In response to a cherrypick label: new pull request created: #6678. |
In response to a cherrypick label: new pull request created: #6679. |
In response to a cherrypick label: new pull request created: #6680. |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Add a notice about scaling PD nodes, this is the same as in "scale tidb cluster with Ansible" document.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?