Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 原有集群新增的tikv节点需要和哪些节点配置ssh免密?
[TiDB Usage Environment] Production Environment
[TiDB Version] v4.0.13
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact] Which nodes need to be configured with SSH passwordless access for the newly added TiKV node?
Tiup will automatically help you complete it when you add it.
As long as there is an SSH trust relationship between the machine where TiUP is deployed and the newly expanded TiKV machine, it will be fine.
One control machine is enough for TiUP.
Only with the control node is fine.
When using tiup for scaling, it should automatically establish SSH mutual trust. If not, you can refer to the new deployment method to add the new TiKV node and establish SSH mutual trust with the tiup control machine.
With central control, you can use a single set of key files for central control and all TiDB nodes.
When scaling, the target machine can be configured with or without SSH passwordless login.
Details:
- Configure passwordless login to the target machine on the TiUP control machine, and directly execute the scaling operation.
- If SSH passwordless login is not configured, use --user to specify the user to access during scaling, -i to specify the access key, or -p to interactively enter the user’s password.
For more details, please refer to the official documentation:
If you use root for installation, you can also skip password-free configuration. During installation, enter the root password. TiUP controls communication through the tidb account and will automatically configure password-free access.
Root installation does not require password-free configuration, nor does it require creating a tidb user on each node; the tidb user will be created automatically.
Check and repair:
tiup cluster check ./topo.yaml --apply --user root -p
Deployment:
tiup cluster deploy tidb-test 7.1.2 ./topo.yaml --user root -p
No manual configuration is needed, tiup will handle it automatically.
Use a password instead of setting up mutual trust, it will help you get it done.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.