Navigation Menu

Skip to content

Commit

Permalink
Use new utility commands to modify cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 27, 2014
1 parent c98063e commit 0299ca2
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 48 deletions.
42 changes: 24 additions & 18 deletions _po/ja/tutorial/1.0.4/add-replica/index.po
Expand Up @@ -757,17 +757,16 @@ msgstr ""

msgid ""
"First, remove the unstable node.\n"
"Re-generate `catalog.json` without the node to be removed, and spread it to ot"
"her nodes in the cluster:"
"Remove the node from existing `catalog.json`, like:"
msgstr ""
"まず、不安定になっているノードを取り除きます。\n"
"取り除かれるノードを含まないように `catalog.json` を再作成して、クラスタ内の各ノードに展開します:"
"以下のようにして `catalog.json` から当該ノードの情報を削除します:"

msgid ""
" (on 192.168.0.10)\n"
" # droonga-engine-catalog-generate --hosts=192.168.0.10 \\\n"
" --output=~/droonga/catalog.json\n"
" # scp ~/droonga/catalog.json 192.168.0.11:~/droonga/"
" (on 192.168.0.10, 192.168.0.11)\n"
" # droonga-engine-modify-catalog --source=~/droonga/catalog.json \\\n"
" --update \\\n"
" --remove-replica-hosts=192.168.0.11"
msgstr ""

msgid "After that the node `192.168.0.11` unjoins from the cluster successfully."
Expand Down Expand Up @@ -823,27 +822,34 @@ msgstr "クラスタが複数ある状態ができたら、既存クラスタか

msgid ""
" (on 192.168.0.12)\n"
" # droonga-engine-catalog-generate --hosts=192.168.0.12 \\\n"
" --output=~/droonga/catalog.json\n"
" # drndump --host=192.168.0.10 \\\n"
" --receiver-host=192.168.0.12 | \\\n"
" droonga-request --host=192.168.0.12 \\\n"
" --receiver-host=192.168.0.12"
" # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/\n"
" # droonga-engine-modify-catalog --source=~/droonga/catalog.json \\\n"
" --update \\\n"
" --hosts=192.168.0.12\n"
" # droonga-engine-absorb-data --source-host=192.168.0.10 \\\n"
" --receiver-host=192.168.0.12"
msgstr ""

msgid ""
"After the duplication successfully finished, the node is ready to join the clu"
"ster.\n"
"Re-generate `catalog.json` and spread it to all nodes in the cluster:"
"Add other nodes to the `catalog.json`:"
msgstr ""
"データの複製が完了したら、ノードをクラスタに参加させる準備は完了です。\n"
"`catalog.json` を再作成し、クラスタ内のすべてのノードにそれを複製します:"
"`catalog.json` に他のノードの情報を追加します:"

msgid ""
" (on 192.168.0.12)\n"
" # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.12 \\\n"
" --output=~/droonga/catalog.json\n"
" # scp ~/droonga/catalog.json 192.168.0.10:~/droonga/"
" # droonga-engine-modify-catalog --source=~/droonga/catalog.json \\\n"
" --update \\\n"
" --add-replica-hosts=192.168.0.10"
msgstr ""

msgid ""
" (on 192.168.0.10)\n"
" # droonga-engine-modify-catalog --source=~/droonga/catalog.json \\\n"
" --update \\\n"
" --add-replica-hosts=192.168.0.12"
msgstr ""

msgid ""
Expand Down
35 changes: 20 additions & 15 deletions ja/tutorial/1.0.4/add-replica/index.md
Expand Up @@ -493,12 +493,12 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作
### 既存のreplicaをクラスタから分離する

まず、不安定になっているノードを取り除きます。
取り除かれるノードを含まないように `catalog.json` を再作成して、クラスタ内の各ノードに展開します:
以下のようにして `catalog.json` から当該ノードの情報を削除します:

(on 192.168.0.10)
# droonga-engine-catalog-generate --hosts=192.168.0.10 \
--output=~/droonga/catalog.json
# scp ~/droonga/catalog.json 192.168.0.11:~/droonga/
(on 192.168.0.10, 192.168.0.11)
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--remove-replica-hosts=192.168.0.11

これで、ノード `192.168.0.11` がクラスタから無事に分離します。

Expand Down Expand Up @@ -536,20 +536,25 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作
クラスタが複数ある状態ができたら、既存クラスタから新しいクラスタへデータを複製します:

(on 192.168.0.12)
# droonga-engine-catalog-generate --hosts=192.168.0.12 \
--output=~/droonga/catalog.json
# drndump --host=192.168.0.10 \
--receiver-host=192.168.0.12 | \
droonga-request --host=192.168.0.12 \
--receiver-host=192.168.0.12
# scp 192.168.0.10:~/droonga/catalog.json ~/droonga/
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--hosts=192.168.0.12
# droonga-engine-absorb-data --source-host=192.168.0.10 \
--receiver-host=192.168.0.12

データの複製が完了したら、ノードをクラスタに参加させる準備は完了です。
`catalog.json` を再作成し、クラスタ内のすべてのノードにそれを複製します:
`catalog.json` に他のノードの情報を追加します:

(on 192.168.0.12)
# droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.12 \
--output=~/droonga/catalog.json
# scp ~/droonga/catalog.json 192.168.0.10:~/droonga/
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--add-replica-hosts=192.168.0.10

(on 192.168.0.10)
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--add-replica-hosts=192.168.0.12

最終的に、`192.168.0.10``192.168.0.12` の2つのノードからなるDroongaクラスタができあがりました。

Expand Down
35 changes: 20 additions & 15 deletions tutorial/1.0.4/add-replica/index.md
Expand Up @@ -490,12 +490,12 @@ Assume that there is a Droonga cluster constructed with two replica nodes `192.1
### Unjoin an existing replica from the cluster

First, remove the unstable node.
Re-generate `catalog.json` without the node to be removed, and spread it to other nodes in the cluster:
Remove the node from existing `catalog.json`, like:

(on 192.168.0.10)
# droonga-engine-catalog-generate --hosts=192.168.0.10 \
--output=~/droonga/catalog.json
# scp ~/droonga/catalog.json 192.168.0.11:~/droonga/
(on 192.168.0.10, 192.168.0.11)
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--remove-replica-hosts=192.168.0.11

After that the node `192.168.0.11` unjoins from the cluster successfully.

Expand Down Expand Up @@ -533,20 +533,25 @@ The result of the `system.status` command will be:
Then, duplicate data from the existing cluster:

(on 192.168.0.12)
# droonga-engine-catalog-generate --hosts=192.168.0.12 \
--output=~/droonga/catalog.json
# drndump --host=192.168.0.10 \
--receiver-host=192.168.0.12 | \
droonga-request --host=192.168.0.12 \
--receiver-host=192.168.0.12
# scp 192.168.0.10:~/droonga/catalog.json ~/droonga/
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--hosts=192.168.0.12
# droonga-engine-absorb-data --source-host=192.168.0.10 \
--receiver-host=192.168.0.12

After the duplication successfully finished, the node is ready to join the cluster.
Re-generate `catalog.json` and spread it to all nodes in the cluster:
Add other nodes to the `catalog.json`:

(on 192.168.0.12)
# droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.12 \
--output=~/droonga/catalog.json
# scp ~/droonga/catalog.json 192.168.0.10:~/droonga/
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--add-replica-hosts=192.168.0.10

(on 192.168.0.10)
# droonga-engine-modify-catalog --source=~/droonga/catalog.json \
--update \
--add-replica-hosts=192.168.0.12

Finally a Droonga cluster constructed with two nodes `192.168.0.10` and `192.168.0.12` is here.

Expand Down

0 comments on commit 0299ca2

Please sign in to comment.