Skip to content

Commit

Permalink
*: unify ansible names (#2575) (#2579)
Browse files Browse the repository at this point in the history
* cherry pick #2575 to release-3.1

Signed-off-by: sre-bot <sre-bot@pingcap.com>

* resolve conflicts

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <1135243111@qq.com>
  • Loading branch information
3 people committed Mar 27, 2020
1 parent bda162c commit 6244cd5
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion _index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TiDB 对业务没有任何侵入性,能优雅的替换传统的数据库中间

TiDB 可以部署在本地和云平台上,支持公有云、私有云和混合云。你可以根据实际场景或需求,选择相应的方式来部署 TiDB 集群:

- [使用 Ansible 部署](/how-to/deploy/orchestrated/ansible.md):如果用于生产环境,须使用 Ansible 部署 TiDB 集群。
- [使用 Ansible 部署](/how-to/deploy/orchestrated/ansible.md):如果用于生产环境,须使用 TiDB Ansible 部署 TiDB 集群。
- [使用 Ansible 离线部署](/how-to/deploy/orchestrated/offline-ansible.md):如果部署环境无法访问网络,可使用 Ansible 进行离线部署。
- [使用 Docker Compose 部署](/how-to/get-started/deploy-tidb-from-docker-compose.md):如果你只是想测试 TiDB、体验 TiDB 的特性,或者用于开发环境,可以使用 Docker Compose 在本地快速部署 TiDB 集群。该部署方式不适用于生产环境。
- [使用 Docker 部署](/how-to/deploy/orchestrated/docker.md):你可以使用 Docker 部署 TiDB 集群,但该部署方式不适用于生产环境。
Expand Down
4 changes: 2 additions & 2 deletions benchmark/how-to-run-tpcc.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fileLocation=/home/user/csv/tpcc. # 存储 csv 文件的目录绝对路径 +

#### 通过 Lightning 导入

通过 Lightning 导入数据请参考 [Lightning 部署执行](/reference/tools/tidb-lightning/deployment.md)章节。这里我们介绍下通过 tidb-ansible 部署 Lightning 导入数据的方法。
通过 Lightning 导入数据请参考 [Lightning 部署执行](/reference/tools/tidb-lightning/deployment.md)章节。这里我们介绍下通过 TiDB Ansible 部署 Lightning 导入数据的方法。

##### 修改 inventory.ini

Expand Down Expand Up @@ -227,7 +227,7 @@ ansible-playbook deploy.yml --tags=lightning
* 在 Importer 目录下执行 `scripts/start_importer.sh`,启动 Importer
* 在 Lightning 目录下执行 `scripts/start_lightning.sh`,开始导入数据

由于是用 ansible 进行部署的,可以在监控页面看到 Lightning 的导入进度,或者通过日志查看导入是否结束。
由于是用 TiDB Ansible 进行部署的,可以在监控页面看到 Lightning 的导入进度,或者通过日志查看导入是否结束。

### 导入完成后

Expand Down
8 changes: 4 additions & 4 deletions faq/tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器

### 2.2 安装部署

#### 2.2.1 Ansible 部署方式(强烈推荐)
#### 2.2.1 TiDB Ansible 部署方式(强烈推荐)

详细可参考[使用 TiDB Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)

Expand Down Expand Up @@ -309,7 +309,7 @@ Direct 模式就是把写入请求直接封装成 I/O 指令发到磁盘,这

### 2.3 升级

#### 2.3.1 如何使用 Ansible 滚动升级?
#### 2.3.1 如何使用 TiDB Ansible 滚动升级?

滚动升级 TiKV 节点( 只升级单独服务 )

Expand All @@ -325,7 +325,7 @@ Direct 模式就是把写入请求直接封装成 I/O 指令发到磁盘,这

#### 2.3.3 Binary 如何升级?

Binary 不是我们建议的安装方式,对升级支持也不友好,建议换成 Ansible 部署。
Binary 不是我们建议的安装方式,对升级支持也不友好,建议换成 TiDB Ansible 部署。

#### 2.3.4 一般升级选择升级 TiKV 还是所有组件都升级?

Expand Down Expand Up @@ -378,7 +378,7 @@ Binary 不是我们建议的安装方式,对升级支持也不友好,建议

#### 3.1.7 如何规范停止 TiDB?

如果是用 Ansible 部署的,可以使用 `ansible-playbook stop.yml` 命令停止 TiDB 集群。如果不是 Ansible 部署的,可以直接 kill 掉所有服务。如果使用 kill 命令,TiDB 的组件会做 graceful 的 shutdown。
如果是用 TiDB Ansible 部署的,可以使用 `ansible-playbook stop.yml` 命令停止 TiDB 集群。如果不是 TiDB Ansible 部署的,可以直接 kill 掉所有服务。如果使用 kill 命令,TiDB 的组件会做 graceful 的 shutdown。

#### 3.1.8 TiDB 里面可以执行 kill 命令吗?

Expand Down
2 changes: 1 addition & 1 deletion how-to/deploy/data-migration-with-ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ DM-Ansible 是 PingCAP 基于 [Ansible](https://docs.ansible.com/ansible/latest/
> **注意:**
>
> - 请确保使用 `tidb` 账户登录中控机。
> - 您需要使用 `pip` 方式下载安装 Ansible 及其依赖,否则可能会遇到兼容性问题。 DM-Ansible 当前与 Ansible 2.5 或更高版本兼容。
> - 您需要使用 `pip` 方式下载安装 TiDB Ansible 及其依赖,否则可能会遇到兼容性问题。 DM-Ansible 当前与 Ansible 2.5 或更高版本兼容。
1. 在中控机上安装 DM-Ansible 及其依赖包:
Expand Down
2 changes: 1 addition & 1 deletion how-to/deploy/geographic-redundancy/location-awareness.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: how-to

PD 能够根据 TiKV 集群的拓扑结构进行调度,使得 TiKV 的容灾能力最大化。

阅读本章前,请先确保阅读 [Ansible 部署方案](/how-to/deploy/orchestrated/ansible.md)[Docker 部署方案](/how-to/deploy/orchestrated/docker.md)
阅读本章前,请先确保阅读 [TiDB Ansible 部署方案](/how-to/deploy/orchestrated/ansible.md)[Docker 部署方案](/how-to/deploy/orchestrated/docker.md)

## TiKV 上报拓扑信息

Expand Down
12 changes: 6 additions & 6 deletions how-to/deploy/orchestrated/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Ansible 是一款自动化运维工具,[TiDB Ansible](https://github.com/pingc

> **注意:**
>
> 使用 Ansible 方式部署时,TiKV 及 PD 节点数据目录所在磁盘请使用 SSD 磁盘,否则无法通过检测。**如果仅验证功能,建议使用 [Docker Compose 部署方案](/how-to/get-started/deploy-tidb-from-docker-compose.md)单机进行测试。**
> 使用 TiDB Ansible 方式部署时,TiKV 及 PD 节点数据目录所在磁盘请使用 SSD 磁盘,否则无法通过检测。**如果仅验证功能,建议使用 [Docker Compose 部署方案](/how-to/get-started/deploy-tidb-from-docker-compose.md)单机进行测试。**
2. 部署中控机一台

Expand Down Expand Up @@ -155,11 +155,11 @@ git clone -b $tag https://github.com/pingcap/tidb-ansible.git
> - 部署和升级 TiDB 集群需使用对应的 tidb-ansible 版本,通过改 `inventory.ini` 文件中的版本来混用可能会产生一些错误。
> - 请务必按文档操作,将 `tidb-ansible` 下载到 `/home/tidb` 目录下,权限为 `tidb` 用户,不要下载到 `/root` 下,否则会遇到权限问题。
## 第 4 步:在中控机器上安装 Ansible 及其依赖
## 第 4 步:在中控机器上安装 TiDB Ansible 及其依赖
以 `tidb` 用户登录中控机,请务必按以下方式通过 `pip` 安装 Ansible 及其相关依赖的指定版本,否则会有兼容问题。目前,TiDB release-2.0、release-2.1、release-3.0、release-3.1 及最新开发版本兼容 Ansible 2.4 ~ 2.7.11 (2.4 ≤ Ansible ≤ 2.7.11)。
以 `tidb` 用户登录中控机,请务必按以下方式通过 `pip` 安装 TiDB Ansible 及其相关依赖的指定版本,否则会有兼容问题。目前,TiDB release-2.0、release-2.1、release-3.0、release-3.1 以及最新开发版本兼容 Ansible 2.4 ~ 2.7.11 (2.4 ≤ Ansible ≤ 2.7.11)。
1. 在中控机器上安装 Ansible 及其依赖。
1. 在中控机器上安装 TiDB Ansible 及其依赖。
{{< copyable "shell-regular" >}}
Expand Down Expand Up @@ -711,7 +711,7 @@ TiDB 兼容 MySQL,因此可使用 MySQL 客户端直接连接 TiDB。推荐配
## 常见部署问题
本小节介绍使用 Ansible 部署 TiDB 集群过程中的常见问题与解决方案。
本小节介绍使用 TiDB Ansible 部署 TiDB 集群过程中的常见问题与解决方案。
### 如何自定义端口
Expand Down Expand Up @@ -913,7 +913,7 @@ ansible-playbook start.yml
### You need to install jmespath prior to running json_query filter 报错
1. 请参照[在中控机器上安装 Ansible 及其依赖](#在中控机器上安装-ansible-及其依赖) 在中控机上通过 `pip` 安装 Ansible 及相关依赖的指定版本,默认会安装 `jmespath`。
1. 请参照[在中控机器上安装 TiDB Ansible 及其依赖](#在中控机器上安装-tidb-ansible-及其依赖) 在中控机上通过 `pip` 安装 TiDB Ansible 及相关依赖的指定版本,默认会安装 `jmespath`。
2. 执行以下命令,验证 `jmespath` 是否安装成功:
Expand Down
2 changes: 1 addition & 1 deletion how-to/deploy/orchestrated/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: how-to

> **警告:**
>
> 对于生产环境,不要使用 Docker 进行部署,而应[使用 Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)
> 对于生产环境,不要使用 Docker 进行部署,而应[使用 TiDB Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)
## 环境准备

Expand Down
10 changes: 5 additions & 5 deletions how-to/deploy/orchestrated/offline-ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ category: how-to

> **注意:**
>
> 如果你的系统已安装 pip,请确认版本 >= 8.1.2,否则离线安装 ansible 及其依赖时,会有兼容问题。
> 如果你的系统已安装 pip,请确认版本 >= 8.1.2,否则离线安装 TiDB Ansible 及其依赖时,会有兼容问题。

## 在中控机上创建 tidb 用户,并生成 ssh key

参考[在中控机上创建 tidb 用户,并生成 ssh key](/how-to/deploy/orchestrated/ansible.md#第-2-步在中控机上创建-tidb-用户并生成-ssh-key) 即可。

## 在中控机器上离线安装 Ansible 及其依赖
## 在中控机器上离线安装 TiDB Ansible 及其依赖

以下是 CentOS 7 系统 Ansible 离线安装方式:

建议使用 Ansible 2.4 至 2.7.11 版本,Ansible 及相关依赖版本记录在 `tidb-ansible/requirements.txt` 文件中。下面步骤以安装 Ansible 2.5 为例。

1. 在下载机上下载 [Ansible 2.5 离线安装包](https://download.pingcap.org/ansible-2.5.0-pip.tar.gz),然后上传至中控机。

2. 离线安装 Ansible 及相关依赖:
2. 离线安装 TiDB Ansible 及相关依赖:

{{< copyable "shell-root" >}}

Expand All @@ -85,9 +85,9 @@ category: how-to

## 在下载机上下载 TiDB Ansible 及 TiDB 安装包

1. 在下载机上安装 Ansible:
1. 在下载机上安装 TiDB Ansible:

请按以下方式在 CentOS 7 系统的下载机上在线安装 Ansible。安装完成后,可通过 `ansible --version` 查看版本,请务必确认是 **Ansible 2.5.0** 版本,否则会有兼容问题。
请按以下方式在 CentOS 7 系统的下载机上在线安装 TiDB Ansible。安装完成后,可通过 `ansible --version` 查看版本,请务必确认是 **Ansible 2.5.0** 版本,否则会有兼容问题。

{{< copyable "shell-root" >}}

Expand Down
2 changes: 1 addition & 1 deletion how-to/get-started/deploy-tidb-from-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: how-to

> **警告:**
>
> 对于生产环境,不要使用 Docker Compose 进行部署,而应[使用 Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)
> 对于生产环境,不要使用 Docker Compose 进行部署,而应[使用 TiDB Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)
## 准备环境

Expand Down
2 changes: 1 addition & 1 deletion how-to/scale/horizontally.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TiDB 集群可以在不影响线上服务的情况下动态进行扩容和缩容

> **注意:**
>
> 如果使用 Ansible 部署 TiDB 集群,请参考[使用 Ansible 扩容缩容](/how-to/scale/with-ansible.md)
> 如果使用 TiDB Ansible 部署 TiDB 集群,请参考[使用 TiDB Ansible 扩容缩容](/how-to/scale/with-ansible.md)
下面分别介绍如何增加或者删除 PD,TiKV 以及 TiDB 的节点。

Expand Down
2 changes: 1 addition & 1 deletion how-to/troubleshoot/tidb-lightning.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ tidb-lightning-ctl --config conf/tidb-lightning.toml --checkpoint-error-destroy=

1. 确保 Lightning 与数据源时区一致。

* 使用 Ansible 部署的话,修正 [`inventory.ini`] 下的 `timezone` 变量。
* 使用 TiDB Ansible 部署的话,修正 [`inventory.ini`] 下的 `timezone` 变量。

```ini
# inventory.ini
Expand Down
8 changes: 4 additions & 4 deletions how-to/upgrade/from-previous-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ category: how-to
>
> 在升级的过程中不要执行 DDL 请求,否则可能会出现行为未定义的问题。
## 在中控机器上安装 Ansible 及其依赖
## 在中控机器上安装 TiDB Ansible 及其依赖

> **注意:**
>
> 如果已经安装了 Ansible 及其依赖,可跳过该步骤。
> 如果已经安装了 TiDB Ansible 及其依赖,可跳过该步骤。
TiDB Ansible release-3.1 版本依赖 2.4.2 及以上但不高于 2.7.11 的 Ansible 版本(`2.4.2 ≦ ansible ≦ 2.7.11`,建议 2.7.11 版本),另依赖 Python 模块:`jinja2 ≧ 2.9.6``jmespath ≧ 0.9.0`。为方便管理依赖,建议使用 `pip` 安装 Ansible 及其依赖,可参照[在中控机器上安装 Ansible 及其依赖](/how-to/deploy/orchestrated/ansible.md#在中控机器上安装-ansible-及其依赖) 进行安装。离线环境参照[在中控机器上离线安装 Ansible 及其依赖](/how-to/deploy/orchestrated/offline-ansible.md#在中控机器上离线安装-ansible-及其依赖)
TiDB Ansible 最新开发版依赖 2.4.2 及以上但不高于 2.7.11 的 Ansible 版本(`2.4.2 ≦ ansible ≦ 2.7.11`,建议 2.7.11 版本),另依赖 Python 模块:`jinja2 ≧ 2.9.6``jmespath ≧ 0.9.0`。为方便管理依赖,建议使用 `pip` 安装 TiDB Ansible 及其依赖,可参照[在中控机器上安装 TiDB Ansible 及其依赖](/how-to/deploy/orchestrated/ansible.md#在中控机器上安装-tidb-ansible-及其依赖) 进行安装。离线环境参照[在中控机器上离线安装 TiDB Ansible 及其依赖](/how-to/deploy/orchestrated/offline-ansible.md#在中控机器上离线安装-tidb-ansible-及其依赖)

安装完成后,可通过以下命令查看版本:

Expand Down Expand Up @@ -63,7 +63,7 @@ Version: 0.9.0

> **注意:**
>
> 请务必按以上文档安装 Ansible 及其依赖。确认 Jinja2 版本是否正确,否则启动 Grafana 时会报错。确认 jmespath 版本是否正确,否则滚动升级 TiKV 时会报错。
> 请务必按以上文档安装 TiDB Ansible 及其依赖。确认 Jinja2 版本是否正确,否则启动 Grafana 时会报错。确认 jmespath 版本是否正确,否则滚动升级 TiKV 时会报错。
## 在中控机器上下载 TiDB Ansible

Expand Down
4 changes: 2 additions & 2 deletions overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ TiDB 对业务没有任何侵入性,能优雅地替换传统的数据库中间

TiDB 可以部署在本地和云平台上,支持公有云、私有云和混合云。你可以根据实际场景或需求,选择相应的方式来部署 TiDB 集群:

- [使用 Ansible 部署](/how-to/deploy/orchestrated/ansible.md):如果用于生产环境,推荐使用 Ansible 部署 TiDB 集群。
- [使用 Ansible 离线部署](/how-to/deploy/orchestrated/offline-ansible.md):如果部署环境无法访问网络,可使用 Ansible 进行离线部署。
- [使用 Ansible 部署](/how-to/deploy/orchestrated/ansible.md):如果用于生产环境,推荐使用 TiDB Ansible 部署 TiDB 集群。
- [使用 Ansible 离线部署](/how-to/deploy/orchestrated/offline-ansible.md):如果部署环境无法访问网络,可使用 TiDB Ansible 进行离线部署。
- [使用 TiDB Operator 部署](/tidb-in-kubernetes/deploy/tidb-operator.md):使用 TiDB Operator 在 Kubernetes 集群上部署生产就绪的 TiDB 集群,支持[部署到 AWS EKS](/tidb-in-kubernetes/deploy/aws-eks.md)[部署到谷歌云 GKE (beta)](/tidb-in-kubernetes/deploy/gcp-gke.md)[部署到阿里云 ACK](/tidb-in-kubernetes/deploy/alibaba-cloud.md) 等。
- [使用 Docker Compose 部署](/how-to/get-started/deploy-tidb-from-docker-compose.md):如果你只是想测试 TiDB、体验 TiDB 的特性,或者用于开发环境,可以使用 Docker Compose 在本地快速部署 TiDB 集群。该部署方式不适用于生产环境。
- [使用 Docker 部署](/how-to/deploy/orchestrated/docker.md):你可以使用 Docker 部署 TiDB 集群,但该部署方式不适用于生产环境。
Expand Down
2 changes: 1 addition & 1 deletion reference/best-practices/grafana-monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Prometheus 是一个拥有多维度数据模型和灵活查询语句的时序数
从 TiDB 2.1.3 版本开始,监控采用 pull 的方式,而之前版本采用的是 push 的方式,这是一个非常好的调整,它有以下几个优点:

- 如果 Prometheus 需要迁移,无需重启整个 TiDB 集群。调整前,因为组件要调整 push 的目标地址,迁移 Prometheus 需要重启整个集群。
- 支持部署 2 套独立的 Grafana + Prometheus 的监控平台(非 HA),防止监控的单点。方法是使用 ansible 用不同的 ip 各执行一次部署命令。
- 支持部署 2 套独立的 Grafana + Prometheus 的监控平台(非 HA),防止监控的单点。方法是使用 TiDB Ansible 用不同的 IP 各执行一次部署命令。
- 去掉了 Pushgateway 这个单点组件。

## 监控数据的来源与展示
Expand Down
2 changes: 1 addition & 1 deletion reference/key-monitoring-metrics/overview-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: reference

# Overview 面板重要监控指标详解

使用 Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)
使用 TiDB Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)

目前 Grafana Dashboard 整体分为 PD、TiDB、TiKV、Node\_exporter、Overview 等。

Expand Down
2 changes: 1 addition & 1 deletion reference/key-monitoring-metrics/pd-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: reference

# PD 重要监控指标详解

使用 Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)
使用 TiDB Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)

目前 Grafana Dashboard 整体分为 PD、TiDB、TiKV、Node\_exporter、Overview 等。

Expand Down
2 changes: 1 addition & 1 deletion reference/key-monitoring-metrics/tidb-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: reference

# TiDB 重要监控指标详解

使用 Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)
使用 TiDB Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)

目前 Grafana Dashboard 整体分为 PD、TiDB、TiKV、Node\_exporter、Overview 等,TiDB 分为 TiDB 和 TiDB Summary 面板(其中 TiDB 面板包含 TiDB Summary 面板的内容)。

Expand Down
2 changes: 1 addition & 1 deletion reference/key-monitoring-metrics/tikv-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: reference

# TiKV 重要监控指标详解

使用 Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)
使用 TiDB Ansible 部署 TiDB 集群时,一键部署监控系统 (Prometheus/Grafana),监控架构请看 [TiDB 监控框架概述](/how-to/monitor/overview.md)

目前 Grafana Dashboard 整体分为 PD、TiDB、TiKV、Node\_exporter、Overview 等。

Expand Down
2 changes: 1 addition & 1 deletion reference/tidb-binlog/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Pump 和 Drainer 均可部署和运行在 Intel x86-64 架构的 64 位通用硬

**方式二**:从零开始部署含 Pump 组件的 TiDB 集群

使用 Ansible 部署 TiDB 集群,方法参考 [使用 TiDB Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)。
使用 TiDB Ansible 部署 TiDB 集群,方法参考 [使用 TiDB Ansible 部署 TiDB 集群](/how-to/deploy/orchestrated/ansible.md)。

3. 查看 Pump 服务状态

Expand Down
2 changes: 1 addition & 1 deletion reference/tidb-binlog/monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: reference

# TiDB Binlog 集群监控

使用 Ansible 成功部署 TiDB Binlog 集群后,可以进入 Grafana Web 界面(默认地址: <http://grafana_ip:3000>,默认账号:admin,密码:admin)查看 Pump 和 Drainer 的运行状态。
使用 TiDB Ansible 成功部署 TiDB Binlog 集群后,可以进入 Grafana Web 界面(默认地址: <http://grafana_ip:3000>,默认账号:admin,密码:admin)查看 Pump 和 Drainer 的运行状态。

## 监控指标

Expand Down
2 changes: 1 addition & 1 deletion reference/tidb-binlog/tidb-binlog-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ PbReader 使用示例:

### Pump/Drainer 配置

使用 Ansible 部署的 Pump 服务已经在启动参数设置 metrics。启动 Drainer 时可以设置以下两个参数:
使用 TiDB Ansible 部署的 Pump 服务已经在启动参数设置 metrics。启动 Drainer 时可以设置以下两个参数:

- `--metrics-addr`:设为 Push Gateway 的地址
- `--metrics-interval`:设为 push 的频率,单位为秒,默认值为 15
Expand Down
Loading

0 comments on commit 6244cd5

Please sign in to comment.