Skip to content

Commit

Permalink
en, zh: add warning for configuring multiple pvs for tiflash (#515)
Browse files Browse the repository at this point in the history
* add warning for configuring multiple pvs for tiflash

* Apply suggestions from code review

Co-authored-by: Ran <huangran@pingcap.com>

Co-authored-by: Ran <huangran@pingcap.com>
  • Loading branch information
DanielZhangQD and ran-huang authored Jun 29, 2020
1 parent df4bda0 commit ee1555f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions en/configure-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ TiFlash supports mounting multiple Persistent Volumes (PVs). If you want to conf
storageClassName: local-storage
```

> **Warning:**
>
> Since TiDB Operator will mount PVs automatically in the **order** of the items in the `storageClaims` list, if you need to add more disks to TiFlash, make sure to append the new item only to the **end** of the original items, and **DO NOT** modify the order of the original items.

#### Enable TiCDC

If you want to enable TiCDC in the cluster, you can add TiCDC spec to the `TiDBCluster` CR. For example:
Expand Down
4 changes: 4 additions & 0 deletions en/deploy-on-alibaba-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ All the instances except ACK mandatory workers are deployed across availability

Modify `replicas`, `storageClaims[].resources.requests.storage`, and `storageClassName` according to your needs.

> **Warning:**
>
> Since TiDB Operator will mount PVs automatically in the **order** of the items in the `storageClaims` list, if you need to add more disks to TiFlash, make sure to append the new item only to the **end** of the original items, and **DO NOT** modify the order of the original items.

* To deploy TiCDC, configure `spec.ticdc` in `db.yaml` as follows:

```yaml
Expand Down
4 changes: 4 additions & 0 deletions en/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ You can use the `terraform output` command to get the output again.

Modify `replicas`, `storageClaims[].resources.requests.storage`, and `storageClassName` according to your needs.

> **Warning:**
>
> Since TiDB Operator will mount PVs automatically in the **order** of the items in the `storageClaims` list, if you need to add more disks to TiFlash, make sure to append the new item only to the **end** of the original items, and **DO NOT** modify the order of the original items.

* To deploy TiCDC, configure `spec.ticdc` in `db.yaml` as follows:

```yaml
Expand Down
4 changes: 4 additions & 0 deletions en/deploy-tiflash.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ TiFlash supports mounting multiple Persistent Volumes (PVs). If you want to conf
storageClassName: local-storage
```

> **Warning:**
>
> Since TiDB Operator will mount PVs automatically in the **order** of the items in the `storageClaims` list, if you need to add more disks to TiFlash, make sure to append the new item only to the **end** of the original items, and **DO NOT** modify the order of the original items.

To [add TiFlash component to an existing TiDB cluster](https://pingcap.com/docs/stable/tiflash/deploy-tiflash/#add-tiflash-component-to-an-existing-tidb-cluster), `replication.enable-placement-rules` should be set to `true` in PD. After you add the TiFlash configuration in TidbCluster by taking the above steps, TiDB Operator will automatically configure `replication.enable-placement-rules: "true"` in PD.
4 changes: 4 additions & 0 deletions zh/deploy-on-alibaba-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ category: how-to

根据实际情况修改 `replicas``storageClaims[].resources.requests.storage``storageClassName`

> **警告:**
>
> 由于 TiDB Operator 会按照 `storageClaims` 列表中的配置**按顺序**自动挂载 PV,如果需要为 TiFlash 增加磁盘,请确保只在列表原有配置**最后添加**,并且**不能**修改列表中原有配置的顺序。

如果要部署 TiCDC,可以在 db.yaml 中配置 `spec.ticdc`,例如:

```yaml
Expand Down
4 changes: 4 additions & 0 deletions zh/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ region = us-west-21

根据实际情况修改 `replicas``storageClaims[].resources.requests.storage``storageClassName`

> **警告:**
>
> 由于 TiDB Operator 会按照 `storageClaims` 列表中的配置**按顺序**自动挂载 PV,如果需要为 TiFlash 增加磁盘,请确保只在列表原有配置**最后添加**,并且**不能**修改列表中原有配置的顺序。

如果要部署 TiCDC,可以在 db.yaml 中配置 `spec.ticdc`,例如:

```yaml
Expand Down
4 changes: 4 additions & 0 deletions zh/deploy-on-general-kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ TiFlash 支持挂载多个 PV,如果要为 TiFlash 配置多个 PV,可以在
storageClassName: local-storage
```

> **警告:**
>
> 由于 TiDB Operator 会按照 `storageClaims` 列表中的配置**按顺序**自动挂载 PV,如果需要为 TiFlash 增加磁盘,请确保只在列表原有配置**最后添加**,并且**不能**修改列表中原有配置的顺序。

如果要在集群中开启 TiCDC,需要在 `${cluster_name}/tidb-cluster.yaml` 文件中配置 `spec.ticdc`:

```yaml
Expand Down
4 changes: 4 additions & 0 deletions zh/deploy-tiflash.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ TiFlash 支持挂载多个 PV,如果要为 TiFlash 配置多个 PV,可以在
storageClassName: local-storage
```

> **警告:**
>
> 由于 TiDB Operator 会按照 `storageClaims` 列表中的配置**按顺序**自动挂载 PV,如果需要为 TiFlash 增加磁盘,请确保只在列表原有配置**最后添加**,并且**不能**修改列表中原有配置的顺序。

[新增部署 TiFlash](https://pingcap.com/docs-cn/stable/reference/tiflash/deploy/#%E5%9C%A8%E5%8E%9F%E6%9C%89-tidb-%E9%9B%86%E7%BE%A4%E4%B8%8A%E6%96%B0%E5%A2%9E-tiflash-%E7%BB%84%E4%BB%B6) 需要 PD 配置 `replication.enable-placement-rules: "true"`,通过上述步骤在 TidbCluster 中增加 TiFlash 配置后,TiDB Operator 会自动为 PD 配置 `replication.enable-placement-rules: "true"`。

如果服务器没有外网,请参考[部署 TiDB 集群](deploy-on-general-kubernetes.md#部署-tidb-集群)在有外网的机器上将用到的 Docker 镜像下载下来并上传到服务器上。

0 comments on commit ee1555f

Please sign in to comment.