From be0e291a25906aef8aaac237e1adcf429960d6a4 Mon Sep 17 00:00:00 2001 From: liukun <451564319@qq.com> Date: Sat, 29 Sep 2018 18:52:26 +0800 Subject: [PATCH 1/4] change the output of the health --- tools/pd-control.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/pd-control.md b/tools/pd-control.md index 2a89b2db4d85..fa13afd5c7e4 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -308,7 +308,18 @@ config set cluster-version 1.0.8 // 设置 cluster version 为 1.0. ```bash >> health // 显示健康信息 -{"health": "true"} +[ + { + "name": "pd", + "member_id": 13195394291058371180, + "client_urls": [ + "http://127.0.0.1:2379" + ], + "health": true + } + ...... +] + ``` ### hot [read | write | store] From fab983fc24d44e3857c5364ee43fd606670e4bac Mon Sep 17 00:00:00 2001 From: liukun <451564319@qq.com> Date: Sat, 29 Sep 2018 18:53:52 +0800 Subject: [PATCH 2/4] change the health --- tools/pd-control.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pd-control.md b/tools/pd-control.md index fa13afd5c7e4..92fe3fe4a418 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -314,6 +314,7 @@ config set cluster-version 1.0.8 // 设置 cluster version 为 1.0. "member_id": 13195394291058371180, "client_urls": [ "http://127.0.0.1:2379" + ...... ], "health": true } From 0b5f5cf73c5cb2b5d5b32f072e4548dfd73f5d46 Mon Sep 17 00:00:00 2001 From: liukun <451564319@qq.com> Date: Sun, 30 Sep 2018 15:35:06 +0800 Subject: [PATCH 3/4] fix doc error: change the command from remove to add --- tools/pd-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-control.md b/tools/pd-control.md index 92fe3fe4a418..59097efb3dca 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -387,7 +387,7 @@ Success! >> operator show leader // 显示所有的 leader operators >> operator show region // 显示所有的 Region operators >> operator add add-peer 1 2 // 在 store 2 上新增 Region 1 的一个副本 ->> operator remove remove-peer 1 2 // 移除 store 2 上的 Region 1 的一个副本 +>> operator add remove-peer 1 2 // 移除 store 2 上的 Region 1 的一个副本 >> operator add transfer-leader 1 2 // 把 Region 1 的 leader 调度到 store 2 >> operator add transfer-region 1 2 3 4 // 把 Region 1 调度到 store 2,3,4 >> operator add transfer-peer 1 2 3 // 把 Region 1 在 store 2 上的副本调度到 store 3 From b59b6ee7cbd01953111935528fe66210064d229f Mon Sep 17 00:00:00 2001 From: liukun <451564319@qq.com> Date: Sun, 30 Sep 2018 15:37:38 +0800 Subject: [PATCH 4/4] format the doc --- tools/pd-control.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-control.md b/tools/pd-control.md index 59097efb3dca..ad4e8fb1d587 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -387,7 +387,7 @@ Success! >> operator show leader // 显示所有的 leader operators >> operator show region // 显示所有的 Region operators >> operator add add-peer 1 2 // 在 store 2 上新增 Region 1 的一个副本 ->> operator add remove-peer 1 2 // 移除 store 2 上的 Region 1 的一个副本 +>> operator add remove-peer 1 2 // 移除 store 2 上的 Region 1 的一个副本 >> operator add transfer-leader 1 2 // 把 Region 1 的 leader 调度到 store 2 >> operator add transfer-region 1 2 3 4 // 把 Region 1 调度到 store 2,3,4 >> operator add transfer-peer 1 2 3 // 把 Region 1 在 store 2 上的副本调度到 store 3