-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add minimal-deploy-topology.md (#3226)
- Loading branch information
1 parent
75c37dc
commit 682d1b6
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: 最小拓扑架构 | ||
summary: 介绍 TiDB 集群的最小拓扑。 | ||
category: how-to | ||
--- | ||
|
||
# 最小拓扑架构 | ||
|
||
本文档介绍 TiDB 集群部署的最小拓扑架构。 | ||
|
||
## 拓扑信息 | ||
|
||
|实例 | 个数 | 物理机配置 | IP |配置 | | ||
| :-- | :-- | :-- | :-- | :-- | | ||
| TiDB |3 | 16 VCore 32GB * 1 | 10.0.1.1 <br> 10.0.1.2 <br> 10.0.1.3 | 默认端口 <br> 全局目录配置 | | ||
| PD | 3 | 4 VCore 8GB * 1 |10.0.1.4 <br> 10.0.1.5 <br> 10.0.1.6 | 默认端口 <br> 全局目录配置 | | ||
| TiKV | 3 | 16 VCore 32GB 2TB (nvme ssd) * 1 | 10.0.1.7 <br> 10.0.1.8 <br> 10.0.1.9 | 默认端口 <br> 全局目录配置 | | ||
| Monitoring & Grafana | 1 | 4 VCore 8GB * 1 500GB (ssd) | 10.0.1.11 | 默认端口 <br> 全局目录配置 | | ||
|
||
## 通过 TiUP 部署集群的配置文件模版 topology.yaml | ||
|
||
### 部署目标 | ||
|
||
通过 `tidb` 用户管理集群,部署一套最小的 TiDB 集群,端口默认,部署目录为 `/tidb-deploy`,数据目录为 `/tidb-data`。 | ||
|
||
### 拓扑模版 | ||
|
||
[简单最小配置模板](/config-templates/simple-mini.yaml) | ||
|
||
[详细最小配置模板](/config-templates/complex-mini.yaml) | ||
|
||
> **注意:** | ||
> | ||
> - 无需手动创建配置文件中的 `tidb` 用户,TiUP cluster 组件会在部署主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。 |