diff --git a/en/scale-a-tidb-cluster.md b/en/scale-a-tidb-cluster.md index 8f714eaae..2b58e1467 100644 --- a/en/scale-a-tidb-cluster.md +++ b/en/scale-a-tidb-cluster.md @@ -211,7 +211,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: diff --git a/zh/scale-a-tidb-cluster.md b/zh/scale-a-tidb-cluster.md index 7e8e6079c..3595d6eb4 100644 --- a/zh/scale-a-tidb-cluster.md +++ b/zh/scale-a-tidb-cluster.md @@ -200,7 +200,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 集群配置是否已对应更新: