YUKI Hiroshi
null+****@clear*****
Wed Jun 25 11:54:19 JST 2014
YUKI Hiroshi 2014-06-25 11:54:19 +0900 (Wed, 25 Jun 2014) New Revision: 96460ab1a9ae1c762fd3d3f35cca5be7f2cf3bcb https://github.com/droonga/droonga.org/commit/96460ab1a9ae1c762fd3d3f35cca5be7f2cf3bcb Message: Use "status" command to check result 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 (+30 -37) =================================================================== --- _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 11:44:20 +0900 (a834c05) +++ _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 11:54:19 +0900 (9ec7dc6) @@ -370,37 +370,23 @@ msgstr "" " * `192.168.0.11`\n" " * `192.168.0.12`" -msgid "You can confirm that, via the status file `live-nodes.json` on each node:" -msgstr "この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます:" +msgid "You can confirm that, via the `status` command for each cluster:" +msgstr "この事は、各クラスタに対する `status` コマンドの実行結果を見ると確認できます:" msgid "" "~~~\n" -"(on 192.168.0.10, 192.168.0.11)\n" -"# cat ~/droonga/state/live-nodes.json\n" -"{\n" -" \"192.168.0.10:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.52:7946\"\n" -" },\n" -" \"192.168.0.11:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.50:7946\"\n" -" }\n" -"}\n" -"~~~" -msgstr "" - -msgid "" -"~~~\n" -"(on 192.168.0.12)\n" -"# cat ~/droonga/state/live-nodes.json\n" +"# curl \"http://192.168.0.12:10041/droonga/status\"\n" "{\n" -" \"192.168.0.10:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.52:7946\"\n" -" },\n" -" \"192.168.0.11:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.50:7946\"\n" -" },\n" -" \"192.168.0.12:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.51:7946\"\n" +" \"nodes\": {\n" +" \"192.168.0.10:10031/droonga\": {\n" +" \"live\": true\n" +" },\n" +" \"192.168.0.11:10031/droonga\": {\n" +" \"live\": true\n" +" },\n" +" \"192.168.0.12:10031/droonga\": {\n" +" \"live\": true\n" +" }\n" " }\n" "}\n" "~~~" @@ -446,24 +432,31 @@ msgstr "" " * `192.168.0.11`\n" " * `192.168.0.12`" +msgid "You can confirm that, via the `status` command on each node:" +msgstr "この事は、`status` コマンドの実行結果を見ると確認できます:" + msgid "" "~~~\n" -"(on 192.168.0.10, 192.168.0.11, 192.168.0.12)\n" -"# cat ~/droonga/state/live-nodes.json\n" +"# curl \"http://192.168.0.10:10041/droonga/status\"\n" "{\n" -" \"192.168.0.10:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.52:7946\"\n" -" },\n" -" \"192.168.0.11:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.50:7946\"\n" -" },\n" -" \"192.168.0.12:10031/droonga\": {\n" -" \"serfAddress\": \"192.168.100.51:7946\"\n" +" \"nodes\": {\n" +" \"192.168.0.10:10031/droonga\": {\n" +" \"live\": true\n" +" },\n" +" \"192.168.0.11:10031/droonga\": {\n" +" \"live\": true\n" +" },\n" +" \"192.168.0.12:10031/droonga\": {\n" +" \"live\": true\n" +" }\n" " }\n" "}\n" "~~~" msgstr "" +msgid "Any node returns same result." +msgstr "いずれのノードも同じ結果を返します。" + msgid "" "Note that the old cluster named \"alpha\" is gone.\n" "Now the new cluster \"charlie\" with three replicas works perfectly, instead of " Modified: ja/tutorial/1.0.4/add-replica/index.md (+35 -29) =================================================================== --- ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 11:44:20 +0900 (9f76df3) +++ ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 11:54:19 +0900 (4b18852) @@ -200,33 +200,36 @@ cronjobとして実行されるバッチスクリプトによって `load` コ * `192.168.0.11` * `192.168.0.12` -この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます: +この事は、各クラスタに対する `status` コマンドの実行結果を見ると確認できます: ~~~ -(on 192.168.0.10, 192.168.0.11) -# cat ~/droonga/state/live-nodes.json +(for the cluster alpha) +# curl "http://192.168.0.10:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } } } ~~~ ~~~ -(on 192.168.0.12) -# cat ~/droonga/state/live-nodes.json +# curl "http://192.168.0.12:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" - }, - "192.168.0.12:10031/droonga": { - "serfAddress": "192.168.100.51:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + }, + "192.168.0.12:10031/droonga": { + "live": true + } } } ~~~ @@ -250,24 +253,27 @@ cronjobとして実行されるバッチスクリプトによって `load` コ * `192.168.0.11` * `192.168.0.12` -この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます: +この事は、`status` コマンドの実行結果を見ると確認できます: ~~~ -(on 192.168.0.10, 192.168.0.11, 192.168.0.12) -# cat ~/droonga/state/live-nodes.json +# curl "http://192.168.0.10:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" - }, - "192.168.0.12:10031/droonga": { - "serfAddress": "192.168.100.51:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + }, + "192.168.0.12:10031/droonga": { + "live": true + } } } ~~~ +いずれのノードも同じ結果を返します。 + 「alpha」と仮称した古いクラスタが姿を消している事に注意してください。 この時、2つのreplicaからなる古いクラスタの代わりとして、新しいクラスタ「charlie」は3つのreplicaのもとで完璧に動作しています。 Modified: tutorial/1.0.4/add-replica/index.md (+35 -29) =================================================================== --- tutorial/1.0.4/add-replica/index.md 2014-06-25 11:44:20 +0900 (1c867a4) +++ tutorial/1.0.4/add-replica/index.md 2014-06-25 11:54:19 +0900 (a7fda80) @@ -196,33 +196,36 @@ Then there are two overlapping Droonga clusters theoretically on this time. * `192.168.0.11` * `192.168.0.12` -You can confirm that, via the status file `live-nodes.json` on each node: +You can confirm that, via the `status` command for each cluster: ~~~ -(on 192.168.0.10, 192.168.0.11) -# cat ~/droonga/state/live-nodes.json +(for the cluster alpha) +# curl "http://192.168.0.10:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } } } ~~~ ~~~ -(on 192.168.0.12) -# cat ~/droonga/state/live-nodes.json +# curl "http://192.168.0.12:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" - }, - "192.168.0.12:10031/droonga": { - "serfAddress": "192.168.100.51:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + }, + "192.168.0.12:10031/droonga": { + "live": true + } } } ~~~ @@ -246,24 +249,27 @@ Then there is just one Droonga clusters on this time. * `192.168.0.11` * `192.168.0.12` -You can confirm that, via the status file `live-nodes.json` on each node: +You can confirm that, via the `status` command on each node: ~~~ -(on 192.168.0.10, 192.168.0.11, 192.168.0.12) -# cat ~/droonga/state/live-nodes.json +# curl "http://192.168.0.10:10041/droonga/status" { - "192.168.0.10:10031/droonga": { - "serfAddress": "192.168.100.52:7946" - }, - "192.168.0.11:10031/droonga": { - "serfAddress": "192.168.100.50:7946" - }, - "192.168.0.12:10031/droonga": { - "serfAddress": "192.168.100.51:7946" + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + }, + "192.168.0.12:10031/droonga": { + "live": true + } } } ~~~ +Any node returns same result. + Note that the old cluster named "alpha" is gone. Now the new cluster "charlie" with three replicas works perfectly, instead of the old one with two replicas. -------------- next part -------------- HTML����������������������������...Download