Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minimal-deploy-topology.md #3226

Merged
merged 17 commits into from
May 26, 2020
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions minimal-deployment-topology.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: 最小拓扑架构
summary: 介绍 TiDB 集群的最小拓扑。
category: how-to
---

# 常规拓扑架构
kissmydb marked this conversation as resolved.
Show resolved Hide resolved

本文档介绍 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`。

### 拓扑模版

[简单最小配置模板](/simple-mini.yaml)

[详细最小配置模板](/complex-mini.yaml)

> **注意:**
>
> - 无需手动创建配置文件中的 `tidb` 用户,TiUP cluster 组件会在部署主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。