You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Scale the TiDB cluster](ansible-deployment-scale.md)
24
+
-[Upgrade the component version](ansible-deployment-rolling-update.md#upgrade-the-component-version)
25
+
-[Clean up data of the TiDB cluster](ansible-operation.md#clean-up-cluster-data)
26
+
-[Destroy the TiDB cluster](ansible-operation.md#destroy-a-cluster)
27
27
28
28
## Prerequisites
29
29
@@ -53,16 +53,16 @@ Log in to the Control Machine using the `root` user account, and run the corresp
53
53
54
54
- If you use a Control Machine installed with CentOS 7, run the following command:
55
55
56
-
```
57
-
# yum -y install epel-release git curl sshpass
58
-
# yum -y install python-pip
59
-
```
56
+
```
57
+
# yum -y install epel-release git curl sshpass
58
+
# yum -y install python-pip
59
+
```
60
60
61
61
- If you use a Control Machine installed with Ubuntu, run the following command:
62
62
63
-
```
64
-
# apt-get -y install git curl sshpass python-pip
65
-
```
63
+
```
64
+
# apt-get -y install git curl sshpass python-pip
65
+
```
66
66
67
67
## Step 2: Create the `tidb` user on the Control Machine and generate the SSH key
68
68
@@ -213,11 +213,7 @@ Log in to the Control Machine using the `root` user account.
213
213
214
214
Format your data disks to the ext4 filesystem and mount the filesystem with the `nodelalloc` and `noatime` options. It is required to mount the `nodelalloc` option, or else the Ansible deployment cannot pass the test. The `noatime` option is optional.
215
215
216
-
> **Note:** If your data disks have been formatted to ext4 and have mounted the options, you can uninstall it by running the following `umount` command, follow the steps starting from editing the `/etc/fstab` file, and remount the filesystem with options.
217
-
>
218
-
> ```
219
-
> # umount /dev/nvme0n1
220
-
> ```
216
+
> **Note:** If your data disks have been formatted to ext4 and have mounted the options, you can uninstall it by running the `# umount /dev/nvme0n1` command, follow the steps starting from editing the `/etc/fstab` file, and remount the filesystem with options.
221
217
222
218
Take the `/dev/nvme0n1` data disk as an example:
223
219
@@ -286,7 +282,7 @@ Log in to the Control Machine using the `tidb` user account, and edit the `tidb-
286
282
- Do not deploy TiKV together with TiDB or PD on the same machine.
287
283
- Use the first TiDB machine as the monitoring machine.
288
284
289
-
> **Note:** It is required to use the internal IP address to deploy.
285
+
> **Note:** It is required to use the internal IP address to deploy. If the SSH port of the target machines are not the default 22 port, you need to add the `ansible_port` variable. For example, `TiDB1 ansible_host=172.16.10.1 ansible_port=5555`.
290
286
291
287
You can choose one of the following two types of cluster topology according to your scenario:
0 commit comments