tiup: complete tiup cluster tls desc (#22861)#22870
Conversation
Synced from: pingcap/docs-cn#21612 Target PR: pingcap#22861 AI Provider: azure Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Code Review
This pull request adds a note to the tiup cluster tls documentation clarifying that the command currently only supports clusters with a single PD node and provides instructions for scaling-in multi-node clusters to use the command. The review feedback suggests improving the clarity and tone of this note by following the style guide, specifically by using the second person, simpler verbs, and removing unnecessary filler words.
|
|
||
| > **Note:** | ||
| > | ||
| > Currently, the `tiup cluster tls` command supports enabling or disabling TLS only for clusters with a single PD node. For clusters with multiple PD nodes, executing the `tiup cluster tls` command directly returns an error, because switching the TLS status can cause communication exceptions between PD nodes. To enable or disable TLS for a cluster with multiple PD nodes, first [`scale-in`](/tiup/tiup-component-cluster-scale-in.md) the PD nodes to one node, and then execute the `tiup cluster tls` command. |
There was a problem hiding this comment.
To improve clarity and follow the style guide, consider removing unnecessary words like "Currently" and "directly". Using "you" (second person) and simpler verbs like "run" instead of "execute" makes the instructions more direct. Also, "communication issues" is more appropriate than "communication exceptions" in this context.
| > Currently, the `tiup cluster tls` command supports enabling or disabling TLS only for clusters with a single PD node. For clusters with multiple PD nodes, executing the `tiup cluster tls` command directly returns an error, because switching the TLS status can cause communication exceptions between PD nodes. To enable or disable TLS for a cluster with multiple PD nodes, first [`scale-in`](/tiup/tiup-component-cluster-scale-in.md) the PD nodes to one node, and then execute the `tiup cluster tls` command. | |
| > The `tiup cluster tls` command supports enabling or disabling TLS only for clusters with a single PD node. If you run this command on a cluster with multiple PD nodes, it returns an error because switching the TLS status can cause communication issues between PD nodes. To enable or disable TLS for such clusters, first [`scale-in`](/tiup/tiup-component-cluster-scale-in.md) the PD nodes to a single node, and then run the `tiup cluster tls` command. |
This is an automated cherry-pick of #22861
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?