YUKI Hiroshi
null+****@clear*****
Wed Jun 25 16:36:38 JST 2014
YUKI Hiroshi 2014-06-25 16:36:38 +0900 (Wed, 25 Jun 2014) New Revision: 014cc8c1d1c0508ca76776b76a6a424fb33656b4 https://github.com/droonga/droonga.org/commit/014cc8c1d1c0508ca76776b76a6a424fb33656b4 Message: Update description for orphan node 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 (+44 -6) =================================================================== --- _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 16:29:19 +0900 (eddf24e) +++ _po/ja/tutorial/1.0.4/add-replica/index.po 2014-06-25 16:36:38 +0900 (a5504eb) @@ -704,13 +704,51 @@ msgstr "" " * `192.168.0.11`" msgid "" -"Even if both nodes `192.168.0.11` and `192.168.0.12` receive requests, they ar" -"e delivered to the nodes of the cluster delta.\n" -"The orphan node `192.168.0.12` never process requests by self." +"~~~\n" +"(for the cluster delta)\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" +" \"192.168.0.11:10031/droonga\": {\n" +" \"live\": true\n" +" }\n" +" }\n" +"}\n" +"# curl \"http://192.168.0.11:10041/droonga/status\"\n" +"{\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" +" }\n" +"}\n" +"# curl \"http://192.168.0.12:10041/droonga/status\"\n" +"{\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" +" }\n" +"}\n" +"~~~" +msgstr "" + +msgid "" +"Any incoming request is delivered to member nodes of the cluster delta.\n" +"Because the orphan node `192.168.0.12` is not a member, it never process reque" +"sts by self." msgstr "" -"`192.168.0.11` と `192.168.0.12` の両方がそれぞれリクエストを受け取ったとしても、それらのノードはリクエストをクラスタ del" -"ta 内のノードに対してのみ配送します。\n" -"取り残されたノード `192.168.0.12` へは、自分自身すらもリクエストを配送しません。" +"流入してきたリクエストはクラスタ delta の各ノードに届けられますが、孤立したノード `192.168.0.12` はもはやクラスタの一員ではないため、" +"リクエストを自分自身で処理する事はありません。" msgid "" "OK, the node is ready to be removed.\n" Modified: ja/tutorial/1.0.4/add-replica/index.md (+40 -2) =================================================================== --- ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 16:29:19 +0900 (74c7edd) +++ ja/tutorial/1.0.4/add-replica/index.md 2014-06-25 16:36:38 +0900 (1ee6ff8) @@ -445,8 +445,46 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 * `192.168.0.10` * `192.168.0.11` -`192.168.0.11` と `192.168.0.12` の両方がそれぞれリクエストを受け取ったとしても、それらのノードはリクエストをクラスタ delta 内のノードに対してのみ配送します。 -取り残されたノード `192.168.0.12` へは、自分自身すらもリクエストを配送しません。 +この事は、各クラスタに対する `status` コマンドの実行結果を見ると確認できます: + +~~~ +(for the cluster delta) +# curl "http://192.168.0.10:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +# curl "http://192.168.0.11:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +# curl "http://192.168.0.12:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +~~~ + +流入してきたリクエストはクラスタ delta の各ノードに届けられますが、孤立したノード `192.168.0.12` はもはやクラスタの一員ではないため、リクエストを自分自身で処理する事はありません。 これで、ノードを取り除く準備ができました。 必要に応じて、サービスを停止させ、コンピュータを停止させましょう。 Modified: tutorial/1.0.4/add-replica/index.md (+41 -2) =================================================================== --- tutorial/1.0.4/add-replica/index.md 2014-06-25 16:29:19 +0900 (8a14843) +++ tutorial/1.0.4/add-replica/index.md 2014-06-25 16:36:38 +0900 (6e26b09) @@ -442,8 +442,47 @@ Then there is only one Droonga cluster on this time. * `192.168.0.10` * `192.168.0.11` -Even if both nodes `192.168.0.11` and `192.168.0.12` receive requests, they are delivered to the nodes of the cluster delta. -The orphan node `192.168.0.12` never process requests by self. +You can confirm that, via the `status` command for each cluster: + +~~~ +(for the cluster delta) +# curl "http://192.168.0.10:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +# curl "http://192.168.0.11:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +# curl "http://192.168.0.12:10041/droonga/status" +{ + "nodes": { + "192.168.0.10:10031/droonga": { + "live": true + }, + "192.168.0.11:10031/droonga": { + "live": true + } + } +} +~~~ + +Any incoming request is delivered to member nodes of the cluster delta. +Because the orphan node `192.168.0.12` is not a member, it never process requests by self. OK, the node is ready to be removed. Stop servers and shutdown it if needed. -------------- next part -------------- HTML����������������������������...Download