Skip to content

Commit 3596d9f

Browse files
committed
use 4-space indentation
1 parent 6c09652 commit 3596d9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

zh/scale-a-tidb-cluster.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ summary: 了解如何在 Kubernetes 上对 TiDB 集群手动扩缩容。
3030
kubectl get pdgroup ${name} -n ${namespace}
3131
```
3232

33-
上述命令输出的 `DESIRED` 的值预期应与你之前配置的值一致。
33+
上述命令输出的 `DESIRED` 的值预期应与你之前配置的值一致。
3434

3535
3. 观察 Pod 是否新增或者减少。
3636

3737
```shell
3838
kubectl -n ${namespace} get pod -w
3939
```
4040

41-
PD 和 TiDB 通常需要 10 到 30 秒左右的时间进行扩容或者缩容。
41+
PD 和 TiDB 通常需要 10 到 30 秒左右的时间进行扩容或者缩容。
4242

43-
TiKV 组件由于涉及到数据搬迁,通常需要 3 到 5 分钟来进行扩容或者缩容。
43+
TiKV 组件由于涉及到数据搬迁,通常需要 3 到 5 分钟来进行扩容或者缩容。
4444

4545
### 水平扩缩容 TiFlash
4646

@@ -70,7 +70,7 @@ kubectl patch -n ${namespace} tiflashgroup ${name} --type merge --patch '{"spec"
7070
curl 127.0.0.1:2379/pd/api/v1/config/rules/group/tiflash | grep count
7171
```
7272

73-
输出结果中 `count` 的最大值就是所有数据表的最大副本数 N。
73+
输出结果中 `count` 的最大值就是所有数据表的最大副本数 N。
7474

7575
3. 回到 `port-forward` 命令所在窗口,按 <kbd>Ctrl</kbd>+<kbd>C</kbd> 停止 `port-forward`
7676

@@ -88,15 +88,15 @@ kubectl patch -n ${namespace} tiflashgroup ${name} --type merge --patch '{"spec"
8888

8989
5. 等待并确认相关表的 TiFlash 副本数更新。
9090

91-
连接到 TiDB 服务,执行如下命令,查询相关表的 TiFlash 副本数:
91+
连接到 TiDB 服务,执行如下命令,查询相关表的 TiFlash 副本数:
9292

9393
```sql
9494
SELECT * FROM information_schema.tiflash_replica WHERE TABLE_SCHEMA = '<db_name>' and TABLE_NAME = '<table_name>';
9595
```
9696

9797
6. 修改 `spec.replicas` 对 TiFlash 进行缩容。
9898

99-
你可以通过以下命令查看 Kubernetes 集群中对应的 TiDB 集群中的 TiFlash 是否更新到了你的期望定义。检查以下命令输出内容中,`DESIRED` 的值是否符合预期值。
99+
你可以通过以下命令查看 Kubernetes 集群中对应的 TiDB 集群中的 TiFlash 是否更新到了你的期望定义。检查以下命令输出内容中,`DESIRED` 的值是否符合预期值。
100100

101101
```shell
102102
kubectl get tiflashgroup ${name} -n ${namespace}

0 commit comments

Comments
 (0)