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

pdms: correct scale command (#2634) #2635

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading