Navigation Menu

Skip to content

Commit

Permalink
Update description for orphan node
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent 9539c2e commit 014cc8c
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 10 deletions.
50 changes: 44 additions & 6 deletions _po/ja/tutorial/1.0.4/add-replica/index.po
Expand Up @@ -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"
Expand Down
42 changes: 40 additions & 2 deletions ja/tutorial/1.0.4/add-replica/index.md
Expand Up @@ -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` はもはやクラスタの一員ではないため、リクエストを自分自身で処理する事はありません。

これで、ノードを取り除く準備ができました。
必要に応じて、サービスを停止させ、コンピュータを停止させましょう。
Expand Down
43 changes: 41 additions & 2 deletions tutorial/1.0.4/add-replica/index.md
Expand Up @@ -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.
Expand Down

0 comments on commit 014cc8c

Please sign in to comment.