Skip to content

Commit 89c9b25

Browse files
ran-huangsre-bot
authored andcommitted
cherry pick pingcap#2730 to release-4.0
Signed-off-by: sre-bot <sre-bot@pingcap.com>
1 parent daa9360 commit 89c9b25

8 files changed

+33
-7
lines changed

geo-distributed-deployment-topology.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ This section describes the key parameter configuration of the TiDB geo-distribut
8484

8585
> **Note:**
8686
>
87-
> You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
87+
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
88+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

hardware-and-software-requirements.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You can deploy and run TiDB on the 64-bit generic hardware server platform in th
5555
| TiDB | 8 core+ | 16 GB+ | No special requirements | Gigabit network card | 1 (can be deployed on the same machine with PD) |
5656
| PD | 4 core+ | 8 GB+ | SAS, 200 GB+ | Gigabit network card | 1 (can be deployed on the same machine with TiDB) |
5757
| TiKV | 8 core+ | 32 GB+ | SAS, 200 GB+ | Gigabit network card | 3 |
58-
| | | | | Total Server Number | 4 |
58+
| TiFlash | 32 core+ | 64 GB+ | SSD, 200 GB+ | Gigabit network card | 1 |
5959

6060
> **Note:**
6161
>
@@ -72,15 +72,22 @@ You can deploy and run TiDB on the 64-bit generic hardware server platform in th
7272
| TiDB | 16 core+ | 32 GB+ | SAS | 10 Gigabit network card (2 preferred) | 2 |
7373
| PD | 4 core+ | 8 GB+ | SSD | 10 Gigabit network card (2 preferred) | 3 |
7474
| TiKV | 16 core+ | 32 GB+ | SSD | 10 Gigabit network card (2 preferred) | 3 |
75+
| TiFlash | 48 core+ | 128 GB+ | 1 or more SSDs | 10 Gigabit network card (2 preferred) | 2 |
7576
| Monitor | 8 core+ | 16 GB+ | SAS | Gigabit network card | 1 |
76-
| | | | | Total Server Number | 9 |
7777

7878
> **Note:**
7979
>
8080
> - In the production environment, the TiDB and PD instances can be deployed on the same server. If you have a higher requirement for performance and reliability, try to deploy them separately.
8181
> - It is strongly recommended to use higher configuration in the production environment.
8282
> - It is recommended to keep the size of TiKV hard disk within 2 TB if you are using PCIe SSDs or within 1.5 TB if you are using regular SSDs.
8383
84+
Before you deploy TiFlash, note the following items:
85+
86+
- TiFlash can be [deployed on multiple disks](/tiflash/tiflash-configuration.md#multi-disk-deployment), so you do not have to use RAID.
87+
- It is recommended to use a high-performance SSD as the first disk of the TiFlash data directory to buffer the real-time replication of TiKV data. The performance of this disk should not be lower than that of TiKV, such as PCI-E SSD. The disk capacity should be no less than 10% of the total capacity; otherwise, it might become the bottleneck of this node. You can deploy ordinary SSDs for other disks, but note that a better PCI-E SSD brings better performance.
88+
- It is recommended to deploy TiFlash on different nodes from TiKV. If you must deploy TiFlash and TiKV on the same node, increase the number of CPU cores and memory, and try to deploy TiFlash and TiKV on different disks to avoid interfering each other.
89+
- The total capacity of the TiFlash disks is calculated in this way: `the data volume of the entire TiKV cluster to be replicated / the number of TiKV replicas * the number of TiFlash replicas`. For example, if the overall planned capacity of TiKV is 1 TB, the number of TiKV replicas is 3, and the number of TiFlash replicas is 2, then the recommended total capacity of TiFlash is `1024 GB / 3 * 2`. You can replicate only the data of some tables. In such case, determine the TiFlash capacity according to the data volume of the tables to be replicated.
90+
8491
## Network requirements
8592

8693
As an open source distributed NewSQL database, TiDB requires the following network port configuration to run. Based on the TiDB deployment in actual environments, the administrator can open relevant ports in the network side and host side.

hybrid-deployment-topology.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ This section introduces the key parameters when you deploy multiple instances on
103103
> - When editing the configuration file template, modify the required parameter, IP, port, and directory.
104104
> - Each component uses the global `<deploy_dir>/<components_name>-<port>` as their `deploy_dir` by default. For example, if TiDB specifies the `4001` port, its `deploy_dir` is `/tidb-deploy/tidb-4001` by default. Therefore, in multi-instance scenarios, when specifying a non-default port, you do not need to specify the directory again.
105105
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
106+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

minimal-deployment-topology.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ This document describes the minimal deployment topology of TiDB clusters.
2424

2525
> **Note:**
2626
>
27-
> You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
27+
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
28+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

production-deployment-using-tiup.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ aliases: ['/docs/stable/how-to/deploy/orchestrated/tiup/']
99

1010
[TiUP](https://github.com/pingcap/tiup) is a cluster operation and maintenance tool introduced in TiDB 4.0. TiUP provides [TiUP cluster](https://github.com/pingcap/tiup/tree/master/components/cluster), a cluster management component written in Golang. By using TiUP cluster, you can easily perform daily database operations, including deploying, starting, stopping, destroying, scaling, and upgrading a TiDB cluster, and manage TiDB cluster parameters.
1111

12-
TiUP supports deploying TiDB, TiFlash, TiDB Binlog, TiCDC, and monitoring system. This document introduces how to deploy TiDB clusters of different topologies.
12+
TiUP supports deploying TiDB, TiFlash, TiDB Binlog, TiCDC, and the monitoring system. This document introduces how to deploy TiDB clusters of different topologies.
1313

1414
## Step 1: Prerequisites and precheck
1515

@@ -191,3 +191,16 @@ If the output log includes ```Started cluster `tidb-test` successfully```, the s
191191
```
192192

193193
In addition, you also need to verify the status of the monitoring system, TiDB Dashboard, and the execution of simple SQL commands. For the specific operations, see [Verify Cluster Status](/post-installation-check.md).
194+
195+
## What's next
196+
197+
If you have deployed [TiFlash](/tiflash/tiflash-overview.md) along with the TiDB cluster, see the following documents:
198+
199+
- [Use TiFlash](/tiflash/use-tiflash.md)
200+
- [Maintain a TiFlash Cluster](/tiflash/maintain-tiflash.md)
201+
- [TiFlash Alert Rules and Solutions](/tiflash/tiflash-alert-rules.md)
202+
- [Troubleshoot TiFlash](/tiflash/troubleshoot-tiflash.md)
203+
204+
If you have deployed [TiCDC](/ticdc/ticdc-overview.md) along with the TiDB cluster, see the following documents:
205+
206+
- [Manage TiCDC Cluster and Replication Tasks](/ticdc/manage-ticdc.md)

ticdc-deployment-topology.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ TiCDC is a tool for replicating the incremental data of TiDB, introduced in TiDB
3131

3232
> **Note:**
3333
>
34-
> You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
34+
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
35+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

tidb-binlog-deployment-topology.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ The key parameters in the topology configuration templates are as follows:
4444
>
4545
> - When editing the configuration file template, if you do not need custom ports or directories, modify the IP only.
4646
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
47+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

tiflash-deployment-topology.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ TiFlash is a columnar storage engine, and gradually becomes the standard cluster
3333

3434
> **Note:**
3535
>
36-
> You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
36+
> - You do not need to manually create the `tidb` user in the configuration file. The TiUP cluster component automatically creates the `tidb` user on the target machines. You can customize the user, or keep the user consistent with the control machine.
37+
> - If you configure the deployment directory as a relative path, the cluster will be deployed in the home directory of the user.

0 commit comments

Comments
 (0)