YUKI Hiroshi
null+****@clear*****
Wed Jun 25 17:02:37 JST 2014
YUKI Hiroshi 2014-06-25 17:02:37 +0900 (Wed, 25 Jun 2014) New Revision: a094452f9c54b983c228d0788501e9af2a02d0cc https://github.com/droonga/droonga.org/commit/a094452f9c54b983c228d0788501e9af2a02d0cc Message: Add results of `status` command Modified files: _po/ja/tutorial/1.0.4/add-replica/index.po ja/tutorial/1.0.4/add-replica/index.md tutorial/1.0.4/add-replica/index.md Modified: _po/ja/tutorial/1.0.4/add-replica/index.po (+40 -3) =================================================================== --- _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 16:36:38 +0900 (a5504eb) +++ _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 17:02:37 +0900 (803caf7) @@ -795,16 +795,53 @@ msgstr "" msgid "After that the node `192.168.0.11` unjoins from the cluster successfully." msgstr "これで、ノード `192.168.0.11` がクラスタから無事に分離します。" +msgid "" +"Now there is a cluster without the node `192.168.0.11`.\n" +"You can confirm that via the `status` command:" +msgstr "" +"この時点で、ノード `192.168.0.11` を含まないクラスタが存在するという状態になっています。\n" +"これは `status` コマンドで確認できます:" + +msgid "" +"~~~\n" +"# curl \"http://192.168.0.10:10041/droonga/status\"\n" +"{\n" +" \"nodes\": {\n" +" \"192.168.0.10:10031/droonga\": {\n" +" \"live\": true\n" +" }\n" +" }\n" +"}\n" +"~~~" +msgstr "" + msgid "### Add a new replica" msgstr "### 新しいreplicaを追加する" msgid "" "Next, setup the new replica.\n" -"Construct a temporary cluster with only one node, and duplicate data from the " -"existing cluster:" +"Construct a temporary cluster with only one node `192.168.0.12`.\n" +"The result of the `status` command will be:" msgstr "" "次に、新しいreplicaをセットアップします。\n" -"1つのノードだけを含む仮のクラスタを作り、既存クラスタから新しいクラスタへデータを複製します:" +"1つのノード `192.168.0.12` だけを含む仮のクラスタを作ってください。\n" +"`status` コマンドの結果はこのようになります:" + +msgid "" +"~~~\n" +"# curl \"http://192.168.0.12:10041/droonga/status\"\n" +"{\n" +" \"nodes\": {\n" +" \"192.168.0.12:10031/droonga\": {\n" +" \"live\": true\n" +" }\n" +" }\n" +"}\n" +"~~~" +msgstr "" + +msgid "Then, duplicate data from the existing cluster:" +msgstr "クラスタが複数ある状態ができたら、既存クラスタから新しいクラスタへデータを複製します:" msgid "" " (on 192.168.0.12)\n" Modified: ja/tutorial/1.0.4/add-replica/index.md (+29 -1) =================================================================== --- ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 16:36:38 +0900 (1ee6ff8) +++ ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 17:02:37 +0900 (d95916c) @@ -511,10 +511,38 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 これで、ノード `192.168.0.11` がクラスタから無事に分離します。 +この時点で、ノード `192.168.0.11` を含まないクラスタが存在するという状態になっています。 +これは `status` コマンドで確認できます: + +~~~ +# curl "http://192.168.0.10:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + } + } +} +~~~ + ### 新しいreplicaを追加する 次に、新しいreplicaをセットアップします。 -1つのノードだけを含む仮のクラスタを作り、既存クラスタから新しいクラスタへデータを複製します: +1つのノード `192.168.0.12` だけを含む仮のクラスタを作ってください。 +`status` コマンドの結果はこのようになります: + +~~~ +# curl "http://192.168.0.12:10041/droonga/status" +{ + "nodes": { + "192.168.0.12:10031/droonga": { + "live": true + } + } +} +~~~ + +クラスタが複数ある状態ができたら、既存クラスタから新しいクラスタへデータを複製します: (on 192.168.0.12) # droonga-engine-catalog-generate --hosts=192.168.0.12 \ Modified: tutorial/1.0.4/add-replica/index.md (+29 -1) =================================================================== --- tutorial/1.0.4/add-replica/index.md 2014-06-25 16:36:38 +0900 (6e26b09) +++ tutorial/1.0.4/add-replica/index.md 2014-06-25 17:02:37 +0900 (01e38c4) @@ -509,10 +509,38 @@ Re-generate `catalog.json` without the node to be removed, and spread it to othe After that the node `192.168.0.11` unjoins from the cluster successfully. +Now there is a cluster without the node `192.168.0.11`. +You can confirm that via the `status` command: + +~~~ +# curl "http://192.168.0.10:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + } + } +} +~~~ + ### Add a new replica Next, setup the new replica. -Construct a temporary cluster with only one node, and duplicate data from the existing cluster: +Construct a temporary cluster with only one node `192.168.0.12`. +The result of the `status` command will be: + +~~~ +# curl "http://192.168.0.12:10041/droonga/status" +{ + "nodes": { + "192.168.0.12:10031/droonga": { + "live": true + } + } +} +~~~ + +Then, duplicate data from the existing cluster: (on 192.168.0.12) # droonga-engine-catalog-generate --hosts=192.168.0.12 \ -------------- next part -------------- HTML����������������������������...Download