diff --git a/en/pd-recover.md b/en/pd-recover.md index ddb466201..c42bfee90 100644 --- a/en/pd-recover.md +++ b/en/pd-recover.md @@ -202,14 +202,7 @@ Check configuration. The following command uses placement rules as an example: kubectl -n ${namespace} exec -it ${cluster_name}-pd-0 -- ./pd-ctl config placement-rules show ``` -### Step 6. Restart TiDB and TiKV - -Use the following commands to restart the TiDB and TiKV clusters: - -```shell -kubectl delete pod -l app.kubernetes.io/component=tidb,app.kubernetes.io/instance=${cluster_name} -n ${namespace} && -kubectl delete pod -l app.kubernetes.io/component=tikv,app.kubernetes.io/instance=${cluster_name} -n ${namespace} -``` +Now TiDB cluster is recovered. ## Scenarios 2: All PD nodes are down and cannot be recovered @@ -371,3 +364,5 @@ Use the following commands to restart the TiDB and TiKV clusters: kubectl delete pod -l app.kubernetes.io/component=tidb,app.kubernetes.io/instance=${cluster_name} -n ${namespace} && kubectl delete pod -l app.kubernetes.io/component=tikv,app.kubernetes.io/instance=${cluster_name} -n ${namespace} ``` + +Now TiDB cluster is recovered. diff --git a/zh/pd-recover.md b/zh/pd-recover.md index dd0c6aa62..117278679 100644 --- a/zh/pd-recover.md +++ b/zh/pd-recover.md @@ -202,14 +202,7 @@ kubectl -n ${namespace} exec -it ${cluster_name}-pd-0 -- ./pd-ctl health kubectl -n ${namespace} exec -it ${cluster_name}-pd-0 -- ./pd-ctl config placement-rules show ``` -### 第 6 步:重启 TiDB 和 TiKV - -使用以下命令重启 TiDB 和 TiKV 实例: - -```shell -kubectl delete pod -l app.kubernetes.io/component=tidb,app.kubernetes.io/instance=${cluster_name} -n ${namespace} && -kubectl delete pod -l app.kubernetes.io/component=tikv,app.kubernetes.io/instance=${cluster_name} -n ${namespace} -``` +至此服务恢复。 ## 场景 2:所有 PD 节点都故障且无法恢复 @@ -373,3 +366,5 @@ kubectl patch tc ${cluster_name} -n ${namespace} --type merge -p '{"spec":{"pd": kubectl delete pod -l app.kubernetes.io/component=tidb,app.kubernetes.io/instance=${cluster_name} -n ${namespace} && kubectl delete pod -l app.kubernetes.io/component=tikv,app.kubernetes.io/instance=${cluster_name} -n ${namespace} ``` + +至此服务恢复。