File tree Expand file tree Collapse file tree 1 file changed +41
-2
lines changed Expand file tree Collapse file tree 1 file changed +41
-2
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,47 @@ category: reference
58
58
> ** 注意:**
59
59
>
60
60
> 如果在集群中所有的 TiFlash 节点停止运行之前,没有取消所有同步到 TiFlash 的表,则需要手动在 PD 中清除同步规则,否则无法成功完成 TiFlash 节点的下线。
61
- >
62
- > 手动在 PD 中清除同步规则的方法是:发送 DELETE 请求 ` http://< pd_ip> :< pd_port> /pd/api/v1/config/rule/tiflash/< rule_id> ` ,rule_id 是需要清除的 rule 的 id。
61
+
62
+ 手动在 PD 中清除同步规则的步骤如下:
63
+
64
+ 1. 查询当前 PD 实例中所有与 TiFlash 相关的的数据同步规则。
65
+
66
+ {{< copyable " shell-regular" > }}
67
+
68
+ ` ` ` shell
69
+ curl http://< pd_ip> :< pd_port> /pd/api/v1/config/rules/group/tiflash
70
+ ` ` `
71
+
72
+ ```
73
+ [
74
+ {
75
+ " group_id" : " tiflash" ,
76
+ " id" : " table-45-r" ,
77
+ " override" : true,
78
+ " start_key" : " 7480000000000000FF2D5F720000000000FA" ,
79
+ " end_key" : " 7480000000000000FF2E00000000000000F8" ,
80
+ " role" : " learner" ,
81
+ " count" : 1,
82
+ " label_constraints" : [
83
+ {
84
+ " key" : " engine" ,
85
+ " op" : " in" ,
86
+ " values" : [
87
+ " tiflash"
88
+ ]
89
+ }
90
+ ]
91
+ }
92
+ ]
93
+ ```
94
+
95
+ 2. 删除所有与 TiFlash 相关的数据同步规则。以 ` id` 为 ` table-45-r` 的规则为例,通过以下命令可以删除该规则。
96
+
97
+ {{< copyable " shell-regular" > }}
98
+
99
+ ` ` ` shell
100
+ curl -v -X DELETE http://< pd_ip> :< pd_port> /pd/api/v1/config/rule/tiflash/table-45-r
101
+ ` ` `
63
102
64
103
# # TiFlash 故障处理
65
104
You can’t perform that action at this time.
0 commit comments