Navigation Menu

Skip to content

Commit

Permalink
Add results of status command
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent 014cc8c commit a094452
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 5 deletions.
43 changes: 40 additions & 3 deletions _po/ja/tutorial/1.0.4/add-replica/index.po
Expand Up @@ -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"
Expand Down
30 changes: 29 additions & 1 deletion ja/tutorial/1.0.4/add-replica/index.md
Expand Up @@ -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 \
Expand Down
30 changes: 29 additions & 1 deletion tutorial/1.0.4/add-replica/index.md
Expand Up @@ -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 \
Expand Down

0 comments on commit a094452

Please sign in to comment.