Skip to content

Commit

Permalink
pdms: correct scale command (#2634) (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Oct 15, 2024
1 parent 9ca206b commit f5d890f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion en/scale-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Taking the `scheduling` microservice as an example, the steps for horizontal sca
1. Modify the `replicas` value of the corresponding `TidbCluster` object to your desired value. For example, run the following command to set the `replicas` value of `scheduling` to `3`:

```shell
kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"pdms":{"name":"scheduling", "replicas":3}}}'
kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"pdms":[{"name":"scheduling", "replicas":3}]}}'
```

2. Check whether the corresponding TiDB cluster configuration for the Kubernetes cluster is updated:
Expand Down
2 changes: 1 addition & 1 deletion zh/scale-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ PD 微服务通常用于解决 PD 出现性能瓶颈的问题,提高 PD 服务
1. 按需修改 `TidbCluster` 对象的 `replicas` 值。例如,执行以下命令可将 `scheduling``replicas` 值设置为 `3`

```shell
kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"pdms":{"name":"scheduling", "replicas":3}}}'
kubectl patch -n ${namespace} tc ${cluster_name} --type merge --patch '{"spec":{"pdms":[{"name":"scheduling", "replicas":3}]}}'
```

2. 查看 Kubernetes 集群中对应的 TiDB 集群配置是否已对应更新:
Expand Down

0 comments on commit f5d890f

Please sign in to comment.