Navigation Menu

Skip to content

Commit

Permalink
Update command line options for unjoin command
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent 1e0ba39 commit 6854690
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
17 changes: 9 additions & 8 deletions _po/ja/tutorial/1.0.4/add-replica/index.po
Expand Up @@ -296,7 +296,7 @@ msgstr "### 新しいreplicaをクラスタに参加させる"
msgid ""
"To add a new replica node to an existing cluster, you just run a command `droo"
"nga-engine-join` on one of existing replica nodes or the new replica node, in "
"the directory the `catalog.jsoin` is located, like:"
"the directory the `catalog.json` is located, like:"
msgstr ""
"新しいreplicaノードを既存のクラスタに追加するには、いずれかの既存のノードもしくは新しいreplicaノードのいずれかにおいて、`catalog.js"
"on` が置かれているディレクトリで、`droonga-engine-join` コマンドを実行します:"
Expand Down Expand Up @@ -404,24 +404,25 @@ msgstr "### 既存のreplicaをクラスタから分離する"

msgid ""
"To remove a replica from an existing cluster, you just run the `droonga-engine"
"-unjoin` command on any existing node in the cluster."
"-unjoin` command on any existing node in the cluster, in the directory the `ca"
"talog.json` is located, like:"
msgstr ""
"新しいreplicaノードを既存のクラスタから削除するには、クラスタ内のいずれかのノードの上で`droonga-engine-unjoin`コマンドを実行し"
"ます:"
"新しいreplicaノードを既存のクラスタから削除するには、クラスタ内のいずれかのノードの上で、`catalog.json` が置かれたディレクトリにおいて"
" `droonga-engine-unjoin` コマンドを実行します:"

msgid ""
" (on 192.168.0.10)\n"
" # droonga-engine-unjoin --base-dir=~/droonga \\\n"
" --replica-remove-host=192.168.0.12"
" # cd ~/droonga\n"
" # droonga-engine-unjoin --host=192.168.0.12"
msgstr ""

msgid ""
" * You must specify the host name or the IP address of an existing node to be "
"removed from the cluster, via the `--replica-remove-host` option.\n"
"removed from the cluster, via the `--host` option.\n"
" * You must run the command in the directory `catalog.json` is located, or spe"
"cify path to the directory via the `--base-dir` option."
msgstr ""
" * `--replica-remove-host` オプションで、クラスタから削除するノードのホスト名またはIPアドレスを指定して下さい。\n"
" * `--host` オプションで、クラスタから削除するノードのホスト名またはIPアドレスを指定して下さい。\n"
" * コマンドは `catalog.json` が置かれたディレクトリで実行するか、もしくはそのディレクトリのパスを `--base-dir` オプションで"
"指定して下さい。"

Expand Down
8 changes: 4 additions & 4 deletions ja/tutorial/1.0.4/add-replica/index.md
Expand Up @@ -221,13 +221,13 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作

### 既存のreplicaをクラスタから分離する

新しいreplicaノードを既存のクラスタから削除するには、クラスタ内のいずれかのノードの上で`droonga-engine-unjoin`コマンドを実行します:
新しいreplicaノードを既存のクラスタから削除するには、クラスタ内のいずれかのノードの上で`catalog.json` が置かれたディレクトリにおいて `droonga-engine-unjoin` コマンドを実行します:

(on 192.168.0.10)
# droonga-engine-unjoin --base-dir=~/droonga \
--replica-remove-host=192.168.0.12
# cd ~/droonga
# droonga-engine-unjoin --host=192.168.0.12

* `--replica-remove-host` オプションで、クラスタから削除するノードのホスト名またはIPアドレスを指定して下さい。
* `--host` オプションで、クラスタから削除するノードのホスト名またはIPアドレスを指定して下さい。
* コマンドは `catalog.json` が置かれたディレクトリで実行するか、もしくはそのディレクトリのパスを `--base-dir` オプションで指定して下さい。

すると、ノードがクラスタから自動的に離脱し、すべてのノードの `catalog.json` も同時に更新されます。
Expand Down
10 changes: 5 additions & 5 deletions tutorial/1.0.4/add-replica/index.md
Expand Up @@ -158,7 +158,7 @@ If you are reading this tutorial sequentially after the [previous topic](../dump

### Joining a new replica node to the cluster

To add a new replica node to an existing cluster, you just run a command `droonga-engine-join` on one of existing replica nodes or the new replica node, in the directory the `catalog.jsoin` is located, like:
To add a new replica node to an existing cluster, you just run a command `droonga-engine-join` on one of existing replica nodes or the new replica node, in the directory the `catalog.json` is located, like:

(on 192.168.0.12)
# cd ~/droonga
Expand Down Expand Up @@ -213,13 +213,13 @@ Assume that there is a Droonga cluster constructed with trhee replica nodes `192

### Unjoin an existing replica from the cluster

To remove a replica from an existing cluster, you just run the `droonga-engine-unjoin` command on any existing node in the cluster.
To remove a replica from an existing cluster, you just run the `droonga-engine-unjoin` command on any existing node in the cluster, in the directory the `catalog.json` is located, like:

(on 192.168.0.10)
# droonga-engine-unjoin --base-dir=~/droonga \
--replica-remove-host=192.168.0.12
# cd ~/droonga
# droonga-engine-unjoin --host=192.168.0.12

* You must specify the host name or the IP address of an existing node to be removed from the cluster, via the `--replica-remove-host` option.
* You must specify the host name or the IP address of an existing node to be removed from the cluster, via the `--host` option.
* You must run the command in the directory `catalog.json` is located, or specify path to the directory via the `--base-dir` option.

Then the specified node automatically unjoins from the cluster, and all nedes' `catalog.json` are also updated.
Expand Down

0 comments on commit 6854690

Please sign in to comment.