Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
6afee2c
Prepare to change
lucklove Nov 10, 2020
0e76708
Introduce reference
lucklove Nov 11, 2020
d8fda1c
Add reference for tiup list and tiup uninstall
lucklove Nov 11, 2020
2077674
mirror WIP
lucklove Nov 26, 2020
14e8a3a
Update
lucklove Dec 9, 2020
724aea0
Add tiup mirror command
lucklove Dec 10, 2020
7d34944
More document for mirror
lucklove Dec 16, 2020
cfe4a2c
Add doc
lucklove Dec 17, 2020
0098142
Update publish document
lucklove Dec 18, 2020
448f74f
Update document for mirror
lucklove Dec 22, 2020
637a92f
Finish the command section
lucklove Dec 24, 2020
769ddff
Add topology reference for tiup-cluster
lucklove Dec 30, 2020
89feb16
Document for dm cluster topology
lucklove Dec 31, 2020
96fbf83
Update
lucklove Jan 5, 2021
35807e7
Finish dm
lucklove Jan 7, 2021
c330d88
Finish dm
lucklove Jan 7, 2021
186d4bc
Address comment
lucklove Jan 11, 2021
f508d7b
Fix lint
lucklove Jan 11, 2021
0872ad1
Merge branch 'master' into tiup
lucklove Jan 11, 2021
00c69e7
Fix link
lucklove Jan 11, 2021
8022482
Fix lint
lucklove Jan 11, 2021
0b1a0be
Merge branch 'master' into tiup
TomShawn Jan 11, 2021
ee910ad
Merge branch 'master' into tiup
lucklove Jan 12, 2021
5c09de5
Remove unused aliases
lucklove Jan 20, 2021
6d82fd4
Remove description title
lucklove Jan 20, 2021
46f2276
Apply suggestions from code review
lucklove Jan 20, 2021
92ec495
Merge branch 'tiup' of https://github.com/lucklove/docs-cn into tiup
lucklove Jan 20, 2021
ecb7df4
Apply suggestions from code review
lucklove Jan 21, 2021
85c60ee
Apply suggestions from code review
lucklove Jan 22, 2021
c9fde0c
Apply suggestions from code review
lucklove Jan 22, 2021
cf58861
Apply suggestions from code review
lucklove Jan 22, 2021
3465363
Address comment
lucklove Jan 22, 2021
e78004c
Merge branch 'master' into tiup
lucklove Jan 25, 2021
3c6384b
Merge branch 'master' into tiup
lucklove Jan 26, 2021
e2321f2
Merge branch 'master' into tiup
lucklove Jan 28, 2021
bb6ca71
Apply suggestions from code review
lucklove Jan 29, 2021
aa71655
Merge branch 'master' into tiup
lucklove Jan 29, 2021
ef916b9
Update tiup/tiup-reference.md
lucklove Jan 29, 2021
cb6bced
Address comment
lucklove Jan 29, 2021
aaf4ed6
Merge branch 'master' into tiup
lucklove Feb 1, 2021
ae9ea1e
Address comment
lucklove Feb 1, 2021
4f935fa
Update tiup-command-clean.md
yikeke Feb 1, 2021
d7ea451
fix a typo
Feb 1, 2021
258e28f
Apply suggestions from code review
lucklove Feb 1, 2021
2e9c211
Address comment
lucklove Feb 1, 2021
73b54a9
Address comment
lucklove Feb 1, 2021
5a14917
Apply suggestions from code review
lucklove Feb 1, 2021
f26f895
Update tiup/tiup-mirror-reference.md
lucklove Feb 1, 2021
85a6968
Merge branch 'master' into tiup
lucklove Feb 1, 2021
6d3a5af
Address comment
lucklove Feb 1, 2021
f1654e8
Apply suggestions from code review
lucklove Feb 1, 2021
f0e7a66
Address comment
lucklove Feb 1, 2021
000800b
Apply suggestions from code review
lucklove Feb 2, 2021
a2c1669
Merge branch 'master' into tiup
TomShawn Feb 3, 2021
9dc570e
refine format and remove control characters
TomShawn Feb 3, 2021
8424606
correct spelling and format
TomShawn Feb 3, 2021
99e5f99
Merge branch 'master' into tiup
TomShawn Feb 4, 2021
84859dc
Merge branch 'master' into tiup
TomShawn Feb 17, 2021
9c36c71
Merge branch 'master' into tiup
TomShawn Feb 18, 2021
dce1411
Resolve comment
lucklove Feb 22, 2021
ecbe08f
Apply suggestions from code review
lucklove Feb 22, 2021
a624e66
Merge branch 'tiup' of https://github.com/lucklove/docs-cn into tiup
lucklove Feb 22, 2021
bee0ba1
Merge branch 'master' into tiup
lucklove Feb 22, 2021
67e711b
Update tiup/tiup-command-completion.md
lucklove Feb 24, 2021
e58c0f7
Address comment
lucklove Feb 24, 2021
1b8ea3b
Merge branch 'tiup' of https://github.com/lucklove/docs-cn into tiup
lucklove Feb 24, 2021
8768213
Fix link
lucklove Feb 24, 2021
a00215c
Apply suggestions from code review
lucklove Feb 24, 2021
b869c11
Address comment
lucklove Feb 25, 2021
6794b15
Merge branch 'tiup' of https://github.com/lucklove/docs-cn into tiup
lucklove Feb 25, 2021
d2d4d8c
Merge branch 'master' into tiup
TomShawn Mar 1, 2021
dbd243e
Merge branch 'master' into tiup
yikeke Mar 1, 2021
7bbaecf
Fix link
lucklove Mar 1, 2021
69ff4f8
Address comment
lucklove Mar 1, 2021
4005fd3
add links to tiup-cluster-topology-reference.md
Mar 1, 2021
b82fddf
fix links
Mar 1, 2021
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
5 changes: 4 additions & 1 deletion TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,15 @@
+ [TiFlash 简介](/tiflash/tiflash-overview.md)
+ [使用 TiFlash](/tiflash/use-tiflash.md)
+ TiUP
+ [文档指南](/tiup/tiup-documentation-guide.md)
+ [文档地图](/tiup/tiup-documentation-guide.md)
+ [概览](/tiup/tiup-overview.md)
+ [术语及核心概念](/tiup/tiup-terminology-and-concepts.md)
+ [TiUP 组件管理](/tiup/tiup-component-management.md)
+ [FAQ](/tiup/tiup-faq.md)
+ [故障排查](/tiup/tiup-troubleshooting-guide.md)
+ [参考手册](/tiup/tiup-reference.md)
+ [TiDB 集群拓扑文件配置](/tiup/tiup-cluster-topology-reference.md)
+ [TiUP 镜像参考指南](/tiup/tiup-mirror-reference.md)
+ TiUP 组件文档
+ [tiup-playground 运行本地测试集群](/tiup/tiup-playground.md)
+ [tiup-cluster 部署运维生产集群](/tiup/tiup-cluster.md)
Expand Down
4 changes: 3 additions & 1 deletion geo-distributed-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ aliases: ['/docs-cn/dev/geo-distributed-deployment-topology/']

[跨机房配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/geo-redundancy-deployment.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md)。

### 关键参数配置

本节介绍跨数据中心部署 TiDB 集群的关键参数配置。

#### TiKV 参数

- 设置 gRPC 的压缩格式,默认为 `none`。为提高跨机房部署场景的目标节点间 gRPC 包的传输速度,建议设置为 gzip 格式。

```yaml
server.grpc-compression-type: gzip
```
Expand Down
8 changes: 5 additions & 3 deletions hybrid-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ aliases: ['/docs-cn/dev/hybrid-deployment-topology/']

[详细混部配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-multi-instance.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md)。

### 混合部署的关键参数介绍

本节介绍单机多实例的关键参数,主要用于 TiDB、TiKV 的单机多实例部署场景。你需要按照提供的计算公式,将结果填写至上一步的配置模板中。
Expand All @@ -32,7 +34,7 @@ aliases: ['/docs-cn/dev/hybrid-deployment-topology/']
- readpool 线程池自适应,配置 `readpool.unified.max-thread-count` 参数可以使 `readpool.storage` 和 `readpool.coprocessor` 共用统一线程池,同时要分别设置自适应开关。

- 开启 `readpool.storage` 和 `readpool.coprocessor`:

```yaml
readpool.storage.use-unified-pool: true
readpool.coprocessor.use-unified-pool: true
Expand All @@ -51,7 +53,7 @@ aliases: ['/docs-cn/dev/hybrid-deployment-topology/']
```yaml
storage.block-cache.shared: true
```

- 计算公式如下:

```
Expand Down Expand Up @@ -93,7 +95,7 @@ aliases: ['/docs-cn/dev/hybrid-deployment-topology/']

- numa 绑核使用前,确认已经安装 numactl 工具,以及物理机对应的物理机 CPU 的信息后,再进行参数配置;

- `numa_node` 这个配置参数与 `numactl --membind` 配置对应。
- `numa_node` 这个配置参数与 `numactl --membind` 配置对应。

> **注意:**
>
Expand Down
2 changes: 2 additions & 0 deletions minimal-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ aliases: ['/docs-cn/dev/minimal-deployment-topology/']

[详细最小配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-mini.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md)。

> **注意:**
>
> - 无需手动创建配置文件中的 `tidb` 用户,TiUP cluster 组件会在目标主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。
Expand Down
2 changes: 1 addition & 1 deletion production-deployment-using-tiup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ aliases: ['/docs-cn/dev/production-deployment-using-tiup/','/docs-cn/dev/how-to/

# 使用 TiUP 部署 TiDB 集群

[TiUP](https://github.com/pingcap/tiup) 是 TiDB 4.0 版本引入的集群运维工具,[TiUP cluster](https://github.com/pingcap/tiup/tree/master/components/cluster) 是 TiUP 提供的使用 Golang 编写的集群管理组件,通过 TiUP cluster 组件就可以进行日常的运维工作,包括部署、启动、关闭、销毁、弹性扩缩容、升级 TiDB 集群;管理 TiDB 集群参数。
[TiUP](https://github.com/pingcap/tiup) 是 TiDB 4.0 版本引入的集群运维工具,[TiUP cluster](https://github.com/pingcap/tiup/tree/master/components/cluster) 是 TiUP 提供的使用 Golang 编写的集群管理组件,通过 TiUP cluster 组件就可以进行日常的运维工作,包括部署、启动、关闭、销毁、弹性扩缩容、升级 TiDB 集群,以及管理 TiDB 集群参数。

目前 TiUP 可以支持部署 TiDB、TiFlash、TiDB Binlog、TiCDC,以及监控系统。本文将介绍不同集群拓扑的具体部署步骤。

Expand Down
4 changes: 2 additions & 2 deletions telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ['/docs-cn/dev/telemetry/']

# 遥测

TiDB、TiUP 及 TiDB Dashboard 默认会收集使用情况信息,并将这些信息分享给 PingCAP 用于改善产品,例如,通过这些使用情况信息,PingCAP 可以了解常见的 TiDB 集群操作,从而确定新功能优先级。
TiDB、TiUP 及 TiDB Dashboard 默认会收集使用情况信息,并将这些信息分享给 PingCAP 用于改善产品,例如,通过这些使用信息,PingCAP 可以了解常见的 TiDB 集群操作,从而确定新功能优先级。

## 哪些使用情况信息会被收集?

Expand Down Expand Up @@ -43,7 +43,7 @@ ADMIN SHOW TELEMETRY;

### TiUP

当 TiUP 遥测功能开启时,执行 TiUP 命令时将会将使用情况信息分享给 PingCAP,包括(但不限于):
当 TiUP 遥测功能开启时,执行 TiUP 命令时会将使用情况信息分享给 PingCAP,包括(但不限于):

- 随机生成的遥测标示符
- TiUP 命令的执行情况,如命令执行是否成功、命令执行耗时等
Expand Down
2 changes: 2 additions & 0 deletions ticdc-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ aliases: ['/docs-cn/dev/ticdc-deployment-topology/','/docs-cn/dev/reference/tool

[详细 TiCDC 配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-cdc.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md#cdc_servers)。

> **注意:**
>
> - 无需手动创建配置文件中的 `tidb` 用户,TiUP cluster 组件会在目标主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。
Expand Down
2 changes: 2 additions & 0 deletions tidb-binlog-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ aliases: ['/docs-cn/dev/tidb-binlog-deployment-topology/']

[详细 TiDB Binlog 配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-tidb-binlog.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md)。

### 关键参数介绍

拓扑配置模版的关键参数如下:
Expand Down
4 changes: 3 additions & 1 deletion tiflash-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ aliases: ['/docs-cn/dev/tiflash-deployment-topology/']

- [详细 TiFlash 配置模版](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-tiflash.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md#tiflash_servers)。

### 关键参数介绍

- 需要将配置模板中 `replication.enable-placement-rules` 设置为 `true`,以开启 PD 的 [Placement Rules](/configure-placement-rules.md) 功能。
Expand All @@ -35,4 +37,4 @@ aliases: ['/docs-cn/dev/tiflash-deployment-topology/']
> **注意:**
>
> - 无需手动创建配置文件中的 `tidb` 用户,TiUP cluster 组件会在目标主机上自动创建该用户。可以自定义用户,也可以和中控机的用户保持一致。
> - 如果部署目录配置为相对路径,会部署在用户家目录下。
> - 如果部署目录配置为相对路径,会部署在用户家目录下。
2 changes: 2 additions & 0 deletions tispark-deployment-topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ aliases: ['/docs-cn/dev/tispark-deployment-topology/']

[详细 TiSpark 配置模板](https://github.com/pingcap/docs-cn/blob/master/config-templates/complex-tispark.yaml)

以上 TiDB 集群拓扑文件中,详细的配置项说明见[通过 TiUP 部署 TiDB 集群的拓扑文件配置](/tiup/tiup-cluster-topology-reference.md#tispark_masters)。

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