YUKI Hiroshi
null+****@clear*****
Tue Aug 19 12:45:19 JST 2014
YUKI Hiroshi 2014-08-19 12:45:19 +0900 (Tue, 19 Aug 2014) New Revision: a88bf2e339983c39f2c7e8d12a52a46c397d336b https://github.com/droonga/droonga.org/commit/a88bf2e339983c39f2c7e8d12a52a46c397d336b Message: Use IP addresses same to examples of wikipedia-search https://github.com/droonga/wikipedia-search/wiki/%E5%AE%9F%E9%A8%93%E7%92%B0%E5%A2%83%EF%BC%88%E4%BB%AE%E6%83%B3%E7%92%B0%E5%A2%83%EF%BC%89%E3%81%AE%E6%A7%8B%E7%AF%89 Modified files: _po/ja/tutorial/1.0.6/add-replica/index.po _po/ja/tutorial/1.0.6/basic/index.po _po/ja/tutorial/1.0.6/dump-restore/index.po _po/ja/tutorial/1.0.6/groonga/index.po ja/tutorial/1.0.6/add-replica/index.md ja/tutorial/1.0.6/basic/index.md ja/tutorial/1.0.6/dump-restore/index.md ja/tutorial/1.0.6/groonga/index.md tutorial/1.0.6/add-replica/index.md tutorial/1.0.6/basic/index.md tutorial/1.0.6/dump-restore/index.md tutorial/1.0.6/groonga/index.md Modified: _po/ja/tutorial/1.0.6/add-replica/index.po (+57 -57) =================================================================== --- _po/ja/tutorial/1.0.6/add-replica/index.po 2014-08-19 12:38:12 +0900 (e446b4b) +++ _po/ja/tutorial/1.0.6/add-replica/index.po 2014-08-19 12:45:19 +0900 (f315048) @@ -121,11 +121,11 @@ msgstr "" msgid "" "Assume that there is a Droonga cluster constructed with two replica nodes `192" -".168.0.10` and `192.168.0.11`, and we are going to add a new replica node `192" -".168.0.12`." +".168.100.50` and `192.168.100.51`, and we are going to add a new replica node " +"`192.168.100.52`." msgstr "" -"ここでは、`192.168.0.10` と `192.168.0.11` の2つのreplicaノードからなるDroongaクラスタがあり、新しいrepli" -"caノードとして `192.168.0.12` を追加すると仮定します。" +"ここでは、`192.168.100.50` と `192.168.100.51` の2つのreplicaノードからなるDroongaクラスタがあり、新しいr" +"eplicaノードとして `192.168.100.52` を追加すると仮定します。" msgid "### Setup a new node" msgstr "### 新しいノードをセットアップする" @@ -134,7 +134,7 @@ msgid "First, prepare a new computer, install required softwares and configure t msgstr "まず、新しいコンピュータをセットアップし、必要なソフトウェアのインストールと設定を済ませます。" msgid "" -" (on 192.168.0.12)\n" +" (on 192.168.100.52)\n" " # apt-get update\n" " # apt-get -y upgrade\n" " # apt-get install -y ruby ruby-dev build-essential nodejs nodejs-legacy np" @@ -149,9 +149,9 @@ msgid "" msgstr "新しいノードには、クラスタの既存のノードから `catalog.json` をコピーする必要があります。" msgid "" -" (on 192.168.0.12)\n" +" (on 192.168.100.52)\n" " # mkdir ~/droonga\n" -" # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/" +" # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/" msgstr "" msgid "" @@ -163,19 +163,19 @@ msgstr "" "もしそのコンピュータがかつてDroongaノードとして使われていた事があった場合には、最初に古いデータを消去する必要があります。" msgid "" -" (on 192.168.0.12)\n" +" (on 192.168.100.52)\n" " # kill $(cat ~/droonga/droonga-engine.pid)\n" " # rm -rf ~/droonga\n" " # mkdir ~/droonga\n" -" # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/" +" # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/" msgstr "" msgid "Let's start the server." msgstr "では、サーバを起動しましょう。" msgid "" -" (on 192.168.0.12)\n" -" # host=192.168.0.12\n" +" (on 192.168.100.52)\n" +" # host=192.168.100.52\n" " # export DROONGA_BASE_DIR=$HOME/droonga\n" " # droonga-engine --host=$host \\\n" " --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n" @@ -204,35 +204,35 @@ msgstr "この事は、`system.status` コマンドの結果を見ると確認 msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" "}\n" -"# curl \"http://192.168.0.11:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" "}\n" -"# curl \"http://192.168.0.12:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.52:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" @@ -300,11 +300,11 @@ msgstr "" "on` が置かれているディレクトリで、`droonga-engine-join` コマンドを実行します:" msgid "" -" (on 192.168.0.12)\n" +" (on 192.168.100.52)\n" " # cd ~/droonga\n" -" # droonga-engine-join --host=192.168.0.12 \\\n" -" --replica-source-host=192.168.0.10\n" -" --replica-source-host=192.168.100.51Joining new replica to the cluster...\n" +" # droonga-engine-join --host=192.168.100.52 \\\n" +" --replica-source-host=192.168.100.50\n" +" Joining new replica to the cluster...\n" " ...\n" " Update existing hosts in the cluster...\n" " ...\n" @@ -338,16 +338,16 @@ msgstr "" msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.12:10031/droonga\": {\n" +" \"192.168.100.52:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" @@ -396,11 +396,11 @@ msgstr "もちろん、他の目的に転用したいといった理由から、 msgid "" "Assume that there is a Droonga cluster constructed with trhee replica nodes `1" -"92.168.0.10`, `192.168.0.11` and `192.168.0.12`, and planning to remove the la" -"st node `192.168.0.12` from the cluster." +"92.168.100.50`, `192.168.100.51` and `192.168.100.52`, and planning to remove " +"the last node `192.168.100.52` from the cluster." msgstr "" -"ここでは、`192.168.0.10`、`192.168.0.11`、および `192.168.0.12` の3つのreplicaノードからなるDroong" -"aクラスタが存在していて、最後のノード `192.168.0.12` をクラスタから取り除こうとしていると仮定します。" +"ここでは、`192.168.100.50`、`192.168.100.51`、および `192.168.100.52` の3つのreplicaノードからなる" +"Droongaクラスタが存在していて、最後のノード `192.168.100.52` をクラスタから取り除こうとしていると仮定します。" msgid "### Unjoin an existing replica from the cluster" msgstr "### 既存のreplicaをクラスタから分離する" @@ -414,9 +414,9 @@ msgstr "" " `droonga-engine-unjoin` コマンドを実行します:" msgid "" -" (on 192.168.0.10)\n" +" (on 192.168.100.50)\n" " # cd ~/droonga\n" -" # droonga-engine-unjoin --host=192.168.0.12\n" +" # droonga-engine-unjoin --host=192.168.100.52\n" " Unjoining replica from the cluster...\n" " ...\n" " Done." @@ -448,11 +448,11 @@ msgstr "ノードの置き換えは、上記の手順の組み合わせで行い msgid "" "Assume that there is a Droonga cluster constructed with two replica nodes `192" -".168.0.10` and `192.168.0.11`, the node `192.168.0.11` is unstable, and planni" -"ng to replace it with a new node `192.168.0.12`." +".168.100.50` and `192.168.100.51`, the node `192.168.100.51` is unstable, and " +"planning to replace it with a new node `192.168.100.52`." msgstr "" -"`192.168.0.10` と `192.168.0.11` の2つのノードからなるDroongaクラスタがあり、ノード `192.168.0.11` の" -"動作が不安定になっていて、これを新しいノード `192.168.0.12` で置き換えようとしていると仮定します。" +"`192.168.100.50` と `192.168.100.51` の2つのノードからなるDroongaクラスタがあり、ノード `192.168.100" +".51` の動作が不安定になっていて、これを新しいノード `192.168.100.52` で置き換えようとしていると仮定します。" msgid "" "First, remove the unstable node.\n" @@ -460,9 +460,9 @@ msgid "" msgstr "まず、不安定になっているノードを取り除きます。以下のようにしてクラスタからノードを離脱させて下さい:" msgid "" -" (on 192.168.0.10)\n" +" (on 192.168.100.50)\n" " # cd ~/droonga\n" -" # droonga-engine-unjoin --host=192.168.0.11" +" # droonga-engine-unjoin --host=192.168.100.51" msgstr "" msgid "" @@ -472,10 +472,10 @@ msgstr "これで、ノードがクラスタから離脱しました。この事 msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" @@ -495,9 +495,9 @@ msgstr "" "必要なパッケージをインストールし、クラスタの既存のノードから `catalog.json` をコピーして、サーバを起動します。" msgid "" -" (on 192.168.0.12)\n" -" # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/\n" -" # host=192.168.0.12\n" +" (on 192.168.100.52)\n" +" # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/\n" +" # host=192.168.100.52\n" " # export DROONGA_BASE_DIR=$HOME/droonga\n" " # droonga-engine --host=$host \\\n" " --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n" @@ -516,37 +516,37 @@ msgid "Then, join the node to the cluster." msgstr "そうしたら、そのノードをクラスタに参加させましょう。" msgid "" -" (on 192.168.0.12)\n" +" (on 192.168.100.52)\n" " # cd ~/droonga\n" -" # droonga-engine-join --host=192.168.0.12 \\\n" -" --replica-source-host=192.168.0.10" +" # droonga-engine-join --host=192.168.100.52 \\\n" +" --replica-source-host=192.168.100.50" msgstr "" msgid "" -"Finally a Droonga cluster constructed with two nodes `192.168.0.10` and `192.1" -"68.0.12` is here." -msgstr "最終的に、`192.168.0.10` と `192.168.0.12` の2つのノードからなるDroongaクラスタができあがりました。" +"Finally a Droonga cluster constructed with two nodes `192.168.100.50` and `192" +".168.100.52` is here." +msgstr "最終的に、`192.168.100.50` と `192.168.100.52` の2つのノードからなるDroongaクラスタができあがりました。" msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.12:10031/droonga\": {\n" +" \"192.168.100.52:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" "}\n" -"# curl \"http://192.168.0.12:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.52:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.12:10031/droonga\": {\n" +" \"192.168.100.52:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" Modified: _po/ja/tutorial/1.0.6/basic/index.po (+16 -15) =================================================================== --- _po/ja/tutorial/1.0.6/basic/index.po 2014-08-19 12:38:12 +0900 (54035d9) +++ _po/ja/tutorial/1.0.6/basic/index.po 2014-08-19 12:45:19 +0900 (817cc7a) @@ -183,8 +183,8 @@ msgstr "" "注意:Droongaが必要とするパッケージをインストールする前に、マシンが2GB以上のメモリを備えていることを確認して下さい。メモリが不足していると、ビルド" "時にエラーが出て、ビルドに失敗することがあります。" -msgid "Assume that the host is `192.168.0.10`." -msgstr "ホストが `192.168.0.10` だと仮定します。" +msgid "Assume that the host is `192.168.100.50`." +msgstr "ホストが `192.168.100.50` だと仮定します。" msgid "## Install packages required for the setup process" msgstr "## セットアップに必要なパッケージをインストールする" @@ -317,17 +317,17 @@ msgid "" " \"slices\": [\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.000\"\n" +" \"address\": \"192.168.100.50:10031/droonga.000\"\n" " }\n" " },\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.001\"\n" +" \"address\": \"192.168.100.50:10031/droonga.001\"\n" " }\n" " },\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.002\"\n" +" \"address\": \"192.168.100.50:10031/droonga.002\"\n" " }\n" " }\n" " ]\n" @@ -338,17 +338,17 @@ msgid "" " \"slices\": [\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.010\"\n" +" \"address\": \"192.168.100.50:10031/droonga.010\"\n" " }\n" " },\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.011\"\n" +" \"address\": \"192.168.100.50:10031/droonga.011\"\n" " }\n" " },\n" " {\n" " \"volume\": {\n" -" \"address\": \"192.168.0.10:10031/droonga.012\"\n" +" \"address\": \"192.168.100.50:10031/droonga.012\"\n" " }\n" " }\n" " ]\n" @@ -399,7 +399,7 @@ msgstr "以下のようにして droonga-engine を起動します。" msgid "" " # export DROONGA_BASE_DIR=$PWD\n" -" # droonga-engine --host 192.168.0.10 \\\n" +" # droonga-engine --host 192.168.100.50 \\\n" " --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n" " --daemon \\\n" " --pid-file $DROONGA_BASE_DIR/droonga-engine.pid" @@ -424,7 +424,7 @@ msgid "Start droonga-engine again:" msgstr "再度droonga-engineを起動します。" msgid "" -" # droonga-engine --host 192.168.0.10 \\\n" +" # droonga-engine --host 192.168.100.50 \\\n" " --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n" " --daemon \\\n" " --pid-file $DROONGA_BASE_DIR/droonga-engine.pid" @@ -1135,8 +1135,8 @@ msgid "Then, run it." msgstr "次に、サーバを起動します。" msgid "" -" # droonga-http-server --receive-host-name=192.168.0.10 \\\n" -" --droonga-engine-host-name=192.168.0.10 \\\n" +" # droonga-http-server --receive-host-name=192.168.100.50 \\\n" +" --droonga-engine-host-name=192.168.100.50 \\\n" " --daemon \\\n" " --pid-file $DROONGA_BASE_DIR/droonga-http-server.pid" msgstr "" @@ -1160,7 +1160,8 @@ msgstr "" "として受け取ることができます)" msgid "" -" # curl \"http://192.168.0.10:10041/tables/Store?attributes=_key&limit=-1\"\n" +" # curl \"http://192.168.100.50:10041/tables/Store?attributes=_key&limit=-1\"" +"\n" " {\n" " \"stores\": {\n" " \"count\": 40,\n" @@ -1304,8 +1305,8 @@ msgstr "" "を、`match_to` パラメータに検索対象として `_key` を指定し、以下のようなリクエストを発行します。" msgid "" -" # curl \"http://192.168.0.10:10041/tables/Store?query=Columbus&match_to=_ke" -"y&attributes=_key&limit=-1\"\n" +" # curl \"http://192.168.100.50:10041/tables/Store?query=Columbus&match_to=_" +"key&attributes=_key&limit=-1\"\n" " {\n" " \"stores\": {\n" " \"count\": 2,\n" Modified: _po/ja/tutorial/1.0.6/dump-restore/index.po (+53 -51) =================================================================== --- _po/ja/tutorial/1.0.6/dump-restore/index.po 2014-08-19 12:38:12 +0900 (0026ac3) +++ _po/ja/tutorial/1.0.6/dump-restore/index.po 2014-08-19 12:45:19 +0900 (d02f7d6) @@ -106,17 +106,17 @@ msgstr "" "う。" msgid "" -"For example, if your cluster is constructed from two nodes `192.168.0.10` and " -"`192.168.0.11`, and now you are logged in to the host `192.168.0.12` then the " -"command line is:" +"For example, if your cluster is constructed from two nodes `192.168.100.50` an" +"d `192.168.100.51`, and now you are logged in to the host `192.168.100.52` the" +"n the command line is:" msgstr "" -"例えば、クラスタが `192.168.0.10` と `192.168.0.11` の2つのノードから構成されていて、別のホスト `192.168.0.12" -"` にログインしている場合、コマンドラインは以下の要領です。" +"例えば、クラスタが `192.168.100.50` と `192.168.100.51` の2つのノードから構成されていて、別のホスト `192.168." +"100.52` にログインしている場合、コマンドラインは以下の要領です。" msgid "" "~~~\n" -"# drndump --host=192.168.0.10 \\\n" -" --receiver-host=192.168.0.12\n" +"# drndump --host=192.168.100.50 \\\n" +" --receiver-host=192.168.100.52\n" "{\n" " \"type\": \"table_create\",\n" " \"dataset\": \"Default\",\n" @@ -189,8 +189,8 @@ msgstr "" "結果をJSONs形式のファイルに保存する場合は、リダイレクトを使って以下のようにして下さい:" msgid "" -" # drndump --host=192.168.0.10 \\\n" -" --receiver-host=192.168.0.12 \\\n" +" # drndump --host=192.168.100.50 \\\n" +" --receiver-host=192.168.100.52 \\\n" " > dump.jsons" msgstr "" @@ -228,11 +228,11 @@ msgstr "### 空のDroongaクラスタを用意する" msgid "" "Assume that there is an empty Droonga cluster constructed from two nodes `192." -"168.0.10` and `192.168.0.11`, now you are logged in to the host `192.168.0.12`" -", and there is a dump file `dump.jsons`." +"168.100.50` and `192.168.100.51`, now you are logged in to the host `192.168.1" +"00.52`, and there is a dump file `dump.jsons`." msgstr "" -"2つのノード `192.168.0.10` と `192.168.0.11` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操" -"作を行っていて、ダンプファイルが `dump.jsons` という名前で手元にあると仮定します。" +"2つのノード `192.168.100.50` と `192.168.100.51` からなる空のクラスタがあり、今 `192.168.100.52` にロ" +"グインして操作を行っていて、ダンプファイルが `dump.jsons` という名前で手元にあると仮定します。" msgid "" "If you are reading this tutorial sequentially, you'll have an existing cluster" @@ -242,7 +242,7 @@ msgstr "もし順番にこのチュートリアルを読み進めているので msgid "" "~~~\n" -"# endpoint=\"http://192.168.0.10:10041\"\n" +"# endpoint=\"http://192.168.100.50:10041\"\n" "# curl \"$endpoint/d/table_remove?name=Location\" | jq \".\"\n" "[\n" " [\n" @@ -278,7 +278,7 @@ msgstr "これでクラスタは空になりました。確かめてみましょ msgid "" "~~~\n" -"# endpoint=\"http://192.168.0.10:10041\"\n" +"# endpoint=\"http://192.168.100.50:10041\"\n" "# curl \"$endpoint/d/table_list\" | jq \".\"\n" "[\n" " [\n" @@ -361,7 +361,7 @@ msgstr "ダンプファイルからクラスタの内容を復元するには、 msgid "" "~~~\n" -"# droonga-send --server=192.168.0.10 \\\n" +"# droonga-send --server=192.168.100.50 \\\n" " dump.jsons\n" "~~~" msgstr "" @@ -454,9 +454,11 @@ msgid "### Prepare multiple Droonga clusters" msgstr "### 複数のDroongaクラスタを用意する" msgid "" -"Assume that there are two clusters: the source has a node `192.168.0.10`, and " -"the destination has a node `192.168.0.11`." -msgstr "ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあると仮定します。" +"Assume that there are two clusters: the source has a node `192.168.100.50`, an" +"d the destination has a node `192.168.100.51`." +msgstr "" +"ノード `192.168.100.50` を含む複製元クラスタと、ノード `192.168.100.51` を含む複製先クラスタの2つのクラスタがあると仮定" +"します。" msgid "" "If you are reading this tutorial sequentially, you'll have an existing cluster" @@ -468,16 +470,16 @@ msgstr "" "dify` を使って2つのクラスタを作り、1つを空にしましょう。手順は以下の通りです:" msgid "" -" (on 192.168.0.10)\n" -" # host=192.168.0.10\n" +" (on 192.168.100.50)\n" +" # host=192.168.100.50\n" " # droonga-engine-catalog-modify --source=~/droonga/catalog.json \\\n" " --update \\\n" " --replica-hosts=$host" msgstr "" msgid "" -" (on 192.168.0.11)\n" -" # host=192.168.0.11\n" +" (on 192.168.100.51)\n" +" # host=192.168.100.51\n" " # droonga-engine-catalog-modify --source=~/droonga/catalog.json \\\n" " --update \\\n" " --replica-hosts=$host\n" @@ -488,24 +490,24 @@ msgid "" msgstr "" msgid "" -"After that there are two clusters: one contains `192.168.0.10` with data, anot" -"her contains `192.168.0.11` with no data. Confirm it:" +"After that there are two clusters: one contains `192.168.100.50` with data, an" +"other contains `192.168.100.51` with no data. Confirm it:" msgstr "" -"これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタがで" -"きました。確かめてみましょう:" +"これで、ノード `192.168.100.50` を含む複製元クラスタと、ノード `192.168.100.51` を含む複製先の空のクラスタの、2つのクラ" +"スタができました。確かめてみましょう:" msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" "}\n" -"# curl \"http://192.168.0.10:10041/d/select?table=Store&output_columns=name&lim" -"it=10\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/d/select?table=Store&output_columns=name&l" +"imit=10\" | jq \".\"\n" "[\n" " [\n" " 0,\n" @@ -556,16 +558,16 @@ msgid "" " ]\n" " ]\n" "]\n" -"# curl \"http://192.168.0.11:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" "}\n" -"# curl \"http://192.168.0.11:10041/d/select?table=Store&output_columns=name&lim" -"it=10\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/d/select?table=Store&output_columns=name&l" +"imit=10\" | jq \".\"\n" "[\n" " [\n" " 0,\n" @@ -604,11 +606,11 @@ msgstr "" msgid "" "~~~\n" -"(on 192.168.0.10 or 192.168.0.11)\n" -"# droonga-engine-absorb-data --source-host=192.168.0.10 \\\n" -" --destination-host=192.168.0.11\n" -"Start to absorb data from 192.168.0.10\n" -" to 192.168.0.11\n" +"(on 192.168.100.50 or 192.168.100.51)\n" +"# droonga-engine-absorb-data --source-host=192.168.100.50 \\\n" +" --destination-host=192.168.100.51\n" +"Start to absorb data from 192.168.100.50\n" +" to 192.168.100.51\n" " dataset = Default\n" " port = 10031\n" " tag = droonga" @@ -628,8 +630,8 @@ msgstr "以上の操作で、2つのクラスタの内容が完全に同期さ msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/d/select?table=Store&output_columns=name&lim" -"it=10\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/d/select?table=Store&output_columns=name&l" +"imit=10\" | jq \".\"\n" "[\n" " [\n" " 0,\n" @@ -680,8 +682,8 @@ msgid "" " ]\n" " ]\n" "]\n" -"# curl \"http://192.168.0.11:10041/d/select?table=Store&output_columns=name&lim" -"it=10\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/d/select?table=Store&output_columns=name&l" +"imit=10\" | jq \".\"\n" "[\n" " [\n" " 0,\n" @@ -742,17 +744,17 @@ msgid "Run following command lines to unite these two clusters:" msgstr "これらの2つのクラスタを結合するために、以下のコマンド列を実行しましょう:" msgid "" -" (on 192.168.0.10)\n" +" (on 192.168.100.50)\n" " # droonga-engine-catalog-modify --source=~/droonga/catalog.json \\\n" " --update \\\n" -" --add-replica-hosts=192.168.0.11" +" --add-replica-hosts=192.168.100.51" msgstr "" msgid "" -" (on 192.168.0.11)\n" +" (on 192.168.100.51)\n" " # droonga-engine-catalog-modify --source=~/droonga/catalog.json \\\n" " --update \\\n" -" --add-replica-hosts=192.168.0.10" +" --add-replica-hosts=192.168.100.50" msgstr "" msgid "After that there is just one cluster - yes, it's the initial state." @@ -760,13 +762,13 @@ msgstr "これで、1つだけクラスタがある状態になりました。 msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" Modified: _po/ja/tutorial/1.0.6/groonga/index.po (+15 -14) =================================================================== --- _po/ja/tutorial/1.0.6/groonga/index.po 2014-08-19 12:38:12 +0900 (9880321) +++ _po/ja/tutorial/1.0.6/groonga/index.po 2014-08-19 12:45:19 +0900 (6246c6d) @@ -133,8 +133,8 @@ msgstr "" "Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュータによって構成されます。\n" "よって、Droongaクラスタを構築するには複数のDroongaノードをセットアップする必要があります。" -msgid "Assume that you have two computers: `192.168.0.10` and `192.168.0.11`." -msgstr "`192.168.0.10`と`192.168.0.11`の2つのコンピュータがあると仮定しましょう。" +msgid "Assume that you have two computers: `192.168.100.50` and `192.168.100.51`." +msgstr "`192.168.100.50`と`192.168.100.51`の2つのコンピュータがあると仮定しましょう。" msgid " 1. Install required platform packages, *on each computer*." msgstr " 1. *それぞれのコンピュータで*、プラットフォームごとに要求されるパッケージをインストールする。" @@ -209,7 +209,8 @@ msgstr "" " データセット名を`--dataset`オプション、各DroongaノードのIPアドレスを`--hosts`オプションで、以下のように指定して下さい:" msgid "" -" # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.11 \\\n" +" # droonga-engine-catalog-generate --hosts=192.168.100.50,192.168.100.5" +"1 \\\n" " --output=./catalog.json" msgstr "" @@ -226,7 +227,7 @@ msgstr "" msgid " 6. Share the generated `catalog.json` *to your all Droonga nodes*." msgstr " 6. *すべてのDroongaノードに*、先程作成した`catalog.json`を共有します。" -msgid " # scp ~/droonga/catalog.json 192.168.0.11:~/droonga/" +msgid " # scp ~/droonga/catalog.json 192.168.100.51:~/droonga/" msgstr "" msgid "" @@ -263,7 +264,7 @@ msgid "To start them, run commands like following on each Droonga node:" msgstr "サービスを起動するには、各Droongaノードで以下のようにコマンドを実行します:" msgid "" -" # host=192.168.0.10\n" +" # host=192.168.100.50\n" " # export DROONGA_BASE_DIR=$HOME/droonga\n" " # droonga-engine --host=$host \\\n" " --log-file=$DROONGA_BASE_DIR/droonga-engine.log \\\n" @@ -289,7 +290,7 @@ msgstr "" "よって、別のDroongaノード上では以下のように別のホスト名を指定する事になります:" msgid "" -" # host=192.168.0.11\n" +" # host=192.168.100.51\n" " # export DROONGA_BASE_DIR=$HOME/droonga\n" " # droonga-engine --host=$host \\\n" " ..." @@ -314,13 +315,13 @@ msgstr "" msgid "" "~~~\n" -"# curl \"http://192.168.0.10:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.50:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" @@ -337,13 +338,13 @@ msgstr "" msgid "" "~~~\n" -"# curl \"http://192.168.0.11:10041/droonga/system/status\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/droonga/system/status\" | jq \".\"\n" "{\n" " \"nodes\": {\n" -" \"192.168.0.10:10031/droonga\": {\n" +" \"192.168.100.50:10031/droonga\": {\n" " \"live\": true\n" " },\n" -" \"192.168.0.11:10031/droonga\": {\n" +" \"192.168.100.51:10031/droonga\": {\n" " \"live\": true\n" " }\n" " }\n" @@ -375,7 +376,7 @@ msgstr "" msgid "" "~~~\n" -"# endpoint=\"http://192.168.0.10:10041\"\n" +"# endpoint=\"http://192.168.100.50:10041\"\n" "# curl \"$endpoint/d/table_create?name=Store&flags=TABLE_PAT_KEY&key_type=Short" "Text\" | jq \".\"\n" "[\n" @@ -560,7 +561,7 @@ msgstr "Droongaはクラスタで動作するので、他のエンドポイン msgid "" "~~~\n" -"# curl \"http://192.168.0.11:10041/d/table_list\" | jq \".\"\n" +"# curl \"http://192.168.100.51:10041/d/table_list\" | jq \".\"\n" "[\n" " [\n" " 0,\n" Modified: ja/tutorial/1.0.6/add-replica/index.md (+55 -55) =================================================================== --- ja/tutorial/1.0.6/add-replica/index.md 2014-08-19 12:38:12 +0900 (23d19e7) +++ ja/tutorial/1.0.6/add-replica/index.md 2014-08-19 12:45:19 +0900 (2946850) @@ -56,13 +56,13 @@ Droongaのノードの集合には、「replica」と「slice」という2つの その一方で、クラスタへの新しいデータの流入は、新しいノードが動作を始めるまでの間停止しておく必要があります。 (将来的には、新しいノードを完全に無停止で追加できるようにする予定ですが、今のところはそれはできません。) -ここでは、`192.168.0.10` と `192.168.0.11` の2つのreplicaノードからなるDroongaクラスタがあり、新しいreplicaノードとして `192.168.0.12` を追加すると仮定します。 +ここでは、`192.168.100.50` と `192.168.100.51` の2つのreplicaノードからなるDroongaクラスタがあり、新しいreplicaノードとして `192.168.100.52` を追加すると仮定します。 ### 新しいノードをセットアップする まず、新しいコンピュータをセットアップし、必要なソフトウェアのインストールと設定を済ませます。 - (on 192.168.0.12) + (on 192.168.100.52) # apt-get update # apt-get -y upgrade # apt-get install -y ruby ruby-dev build-essential nodejs nodejs-legacy npm @@ -71,23 +71,23 @@ Droongaのノードの集合には、「replica」と「slice」という2つの 新しいノードには、クラスタの既存のノードから `catalog.json` をコピーする必要があります。 - (on 192.168.0.12) + (on 192.168.100.52) # mkdir ~/droonga - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ 注意点として、空でないノードを既存のクラスタに追加することはできません。 もしそのコンピュータがかつてDroongaノードとして使われていた事があった場合には、最初に古いデータを消去する必要があります。 - (on 192.168.0.12) + (on 192.168.100.52) # kill $(cat ~/droonga/droonga-engine.pid) # rm -rf ~/droonga # mkdir ~/droonga - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ では、サーバを起動しましょう。 - (on 192.168.0.12) - # host=192.168.0.12 + (on 192.168.100.52) + # host=192.168.100.52 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -107,35 +107,35 @@ Droongaのノードの集合には、「replica」と「slice」という2つの この事は、`system.status` コマンドの結果を見ると確認できます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -167,11 +167,11 @@ cronjobとして実行されるバッチスクリプトによって `load` コ 新しいreplicaノードを既存のクラスタに追加するには、いずれかの既存のノードもしくは新しいreplicaノードのいずれかにおいて、`catalog.json` が置かれているディレクトリで、`droonga-engine-join` コマンドを実行します: - (on 192.168.0.12) + (on 192.168.100.52) # cd ~/droonga - # droonga-engine-join --host=192.168.0.12 \ - --replica-source-host=192.168.0.10 - --replica-source-host=192.168.100.51Joining new replica to the cluster... + # droonga-engine-join --host=192.168.100.52 \ + --replica-source-host=192.168.100.50 + Joining new replica to the cluster... ... Update existing hosts in the cluster... ... @@ -188,16 +188,16 @@ cronjobとして実行されるバッチスクリプトによって `load` コ この事は、`system.status` コマンドの結果を見ると確認できます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } @@ -221,15 +221,15 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 もちろん、他の目的に転用したいといった理由から、正常動作中のノードを取り除きたいと考える場合もあるでしょう。 -ここでは、`192.168.0.10`、`192.168.0.11`、および `192.168.0.12` の3つのreplicaノードからなるDroongaクラスタが存在していて、最後のノード `192.168.0.12` をクラスタから取り除こうとしていると仮定します。 +ここでは、`192.168.100.50`、`192.168.100.51`、および `192.168.100.52` の3つのreplicaノードからなるDroongaクラスタが存在していて、最後のノード `192.168.100.52` をクラスタから取り除こうとしていると仮定します。 ### 既存のreplicaをクラスタから分離する 新しいreplicaノードを既存のクラスタから削除するには、クラスタ内のいずれかのノードの上で、`catalog.json` が置かれたディレクトリにおいて `droonga-engine-unjoin` コマンドを実行します: - (on 192.168.0.10) + (on 192.168.100.50) # cd ~/droonga - # droonga-engine-unjoin --host=192.168.0.12 + # droonga-engine-unjoin --host=192.168.100.52 Unjoining replica from the cluster... ... Done. @@ -243,35 +243,35 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 この事は、`system.status` コマンドの結果を見ると確認できます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -282,23 +282,23 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 ノードの置き換えは、上記の手順の組み合わせで行います。 -`192.168.0.10` と `192.168.0.11` の2つのノードからなるDroongaクラスタがあり、ノード `192.168.0.11` の動作が不安定になっていて、これを新しいノード `192.168.0.12` で置き換えようとしていると仮定します。 +`192.168.100.50` と `192.168.100.51` の2つのノードからなるDroongaクラスタがあり、ノード `192.168.100.51` の動作が不安定になっていて、これを新しいノード `192.168.100.52` で置き換えようとしていると仮定します。 ### 既存のreplicaをクラスタから分離する まず、不安定になっているノードを取り除きます。以下のようにしてクラスタからノードを離脱させて下さい: - (on 192.168.0.10) + (on 192.168.100.50) # cd ~/droonga - # droonga-engine-unjoin --host=192.168.0.11 + # droonga-engine-unjoin --host=192.168.100.51 これで、ノードがクラスタから離脱しました。この事は `system.status` コマンドで確かめられます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true } } @@ -310,9 +310,9 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 次に、新しいreplicaを用意します。 必要なパッケージをインストールし、クラスタの既存のノードから `catalog.json` をコピーして、サーバを起動します。 - (on 192.168.0.12) - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ - # host=192.168.0.12 + (on 192.168.100.52) + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ + # host=192.168.100.52 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -328,34 +328,34 @@ Droongaクラスタ内のノードは互いに監視しあっており、動作 そうしたら、そのノードをクラスタに参加させましょう。 - (on 192.168.0.12) + (on 192.168.100.52) # cd ~/droonga - # droonga-engine-join --host=192.168.0.12 \ - --replica-source-host=192.168.0.10 + # droonga-engine-join --host=192.168.100.52 \ + --replica-source-host=192.168.100.50 -最終的に、`192.168.0.10` と `192.168.0.12` の2つのノードからなるDroongaクラスタができあがりました。 +最終的に、`192.168.100.50` と `192.168.100.52` の2つのノードからなるDroongaクラスタができあがりました。 この事は、`system.status` コマンドの結果を見ると確認できます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } Modified: ja/tutorial/1.0.6/basic/index.md (+13 -13) =================================================================== --- ja/tutorial/1.0.6/basic/index.md 2014-08-19 12:38:12 +0900 (323ad98) +++ ja/tutorial/1.0.6/basic/index.md 2014-08-19 12:45:19 +0900 (c9b7df4) @@ -79,7 +79,7 @@ Droonga Engine自体は通信プロトコルとしてfluentdプロトコルに 注意:Droongaが必要とするパッケージをインストールする前に、マシンが2GB以上のメモリを備えていることを確認して下さい。メモリが不足していると、ビルド時にエラーが出て、ビルドに失敗することがあります。 -ホストが `192.168.0.10` だと仮定します。 +ホストが `192.168.100.50` だと仮定します。 ## セットアップに必要なパッケージをインストールする @@ -179,17 +179,17 @@ catalog.json: "slices": [ { "volume": { - "address": "192.168.0.10:10031/droonga.000" + "address": "192.168.100.50:10031/droonga.000" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.001" + "address": "192.168.100.50:10031/droonga.001" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.002" + "address": "192.168.100.50:10031/droonga.002" } } ] @@ -200,17 +200,17 @@ catalog.json: "slices": [ { "volume": { - "address": "192.168.0.10:10031/droonga.010" + "address": "192.168.100.50:10031/droonga.010" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.011" + "address": "192.168.100.50:10031/droonga.011" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.012" + "address": "192.168.100.50:10031/droonga.012" } } ] @@ -236,7 +236,7 @@ catalog.json: 以下のようにして droonga-engine を起動します。 # export DROONGA_BASE_DIR=$PWD - # droonga-engine --host 192.168.0.10 \ + # droonga-engine --host 192.168.100.50 \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-engine.pid @@ -253,7 +253,7 @@ droonga-engineにSIGTERMを送ります。 再度droonga-engineを起動します。 - # droonga-engine --host 192.168.0.10 \ + # droonga-engine --host 192.168.100.50 \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-engine.pid @@ -927,8 +927,8 @@ HTTP Protocol Adapterとして`droonga-http-server`を使用します。`droonga 次に、サーバを起動します。 - # droonga-http-server --receive-host-name=192.168.0.10 \ - --droonga-engine-host-name=192.168.0.10 \ + # droonga-http-server --receive-host-name=192.168.100.50 \ + --droonga-engine-host-name=192.168.100.50 \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-http-server.pid @@ -937,7 +937,7 @@ HTTP Protocol Adapterとして`droonga-http-server`を使用します。`droonga 準備が整いました。 Protocol Adapter に向けて HTTP 経由でリクエストを発行し、データベースに問い合わせを行ってみましょう。まずは `Shops` テーブルの中身を取得してみます。以下のようなリクエストを用います。(`attributes=_key` を指定しているのは「検索結果に `_key` 値を含めて返してほしい」という意味です。これがないと、`records` に何も値がないレコードが返ってきてしまいます。`attributes` パラメータには `,` 区切りで複数の属性を指定することができます。`attributes=_key,location` と指定することで、緯度経度もレスポンスとして受け取ることができます) - # curl "http://192.168.0.10:10041/tables/Store?attributes=_key&limit=-1" + # curl "http://192.168.100.50:10041/tables/Store?attributes=_key&limit=-1" { "stores": { "count": 40, @@ -1070,7 +1070,7 @@ HTTP Protocol Adapterとして`droonga-http-server`を使用します。`droonga もう少し複雑なクエリを試してみましょう。例えば、店名に「Columbus」を含む店舗を検索します。`query` パラメータにクエリ `Columbus` を、`match_to` パラメータに検索対象として `_key` を指定し、以下のようなリクエストを発行します。 - # curl "http://192.168.0.10:10041/tables/Store?query=Columbus&match_to=_key&attributes=_key&limit=-1" + # curl "http://192.168.100.50:10041/tables/Store?query=Columbus&match_to=_key&attributes=_key&limit=-1" { "stores": { "count": 2, Modified: ja/tutorial/1.0.6/dump-restore/index.md (+35 -35) =================================================================== --- ja/tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:38:12 +0900 (7987d90) +++ ja/tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:45:19 +0900 (fef1af4) @@ -59,11 +59,11 @@ layout: ja `drndump` コマンドはすべてのスキ−マ定義とデータをJSONs形式で取り出します。既存のDroongaクラスタのすべての内容をダンプ出力してみましょう。 -例えば、クラスタが `192.168.0.10` と `192.168.0.11` の2つのノードから構成されていて、別のホスト `192.168.0.12` にログインしている場合、コマンドラインは以下の要領です。 +例えば、クラスタが `192.168.100.50` と `192.168.100.51` の2つのノードから構成されていて、別のホスト `192.168.100.52` にログインしている場合、コマンドラインは以下の要領です。 ~~~ -# drndump --host=192.168.0.10 \ - --receiver-host=192.168.0.12 +# drndump --host=192.168.100.50 \ + --receiver-host=192.168.100.52 { "type": "table_create", "dataset": "Default", @@ -120,8 +120,8 @@ layout: ja 実行結果は標準出力に出力されます。 結果をJSONs形式のファイルに保存する場合は、リダイレクトを使って以下のようにして下さい: - # drndump --host=192.168.0.10 \ - --receiver-host=192.168.0.12 \ + # drndump --host=192.168.100.50 \ + --receiver-host=192.168.100.52 \ > dump.jsons @@ -143,12 +143,12 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong ### 空のDroongaクラスタを用意する -2つのノード `192.168.0.10` と `192.168.0.11` からなる空のクラスタがあり、今 `192.168.0.12` にログインして操作を行っていて、ダンプファイルが `dump.jsons` という名前で手元にあると仮定します。 +2つのノード `192.168.100.50` と `192.168.100.51` からなる空のクラスタがあり、今 `192.168.100.52` にログインして操作を行っていて、ダンプファイルが `dump.jsons` という名前で手元にあると仮定します。 もし順番にこのチュートリアルを読み進めているのであれば、クラスタとダンプファイルが既に手元にあるはずです。以下の操作でクラスタを空にしましょう: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_remove?name=Location" | jq "." [ [ @@ -181,7 +181,7 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong これでクラスタは空になりました。確かめてみましょう: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_list" | jq "." [ [ @@ -252,7 +252,7 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong ダンプファイルからクラスタの内容を復元するには、以下のようなコマンドを実行します: ~~~ -# droonga-send --server=192.168.0.10 \ +# droonga-send --server=192.168.100.50 \ dump.jsons ~~~ @@ -325,18 +325,18 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong ### 複数のDroongaクラスタを用意する -ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先クラスタの2つのクラスタがあると仮定します。 +ノード `192.168.100.50` を含む複製元クラスタと、ノード `192.168.100.51` を含む複製先クラスタの2つのクラスタがあると仮定します。 もし順番にこのチュートリアルを読み進めているのであれば、2つのノードを含むクラスタが手元にあるはずです。`droonga-engine-catalog-modify` を使って2つのクラスタを作り、1つを空にしましょう。手順は以下の通りです: - (on 192.168.0.10) - # host=192.168.0.10 + (on 192.168.100.50) + # host=192.168.100.50 # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ --replica-hosts=$host - (on 192.168.0.11) - # host=192.168.0.11 + (on 192.168.100.51) + # host=192.168.100.51 # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ --replica-hosts=$host @@ -345,19 +345,19 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong # curl "$endpoint/d/table_remove?name=Store" # curl "$endpoint/d/table_remove?name=Term" -これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタができました。確かめてみましょう: +これで、ノード `192.168.100.50` を含む複製元クラスタと、ノード `192.168.100.51` を含む複製先の空のクラスタの、2つのクラスタができました。確かめてみましょう: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true } } } -# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.50:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -408,15 +408,15 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong ] ] ] -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.51:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -442,11 +442,11 @@ Droongaクラスタにそれらのメッセージを送信するには、`droong 2つのクラスタの間でデータをコピーするには、いずれかのノード上で以下のように `droonga-engine-absorb-data` コマンドを実行します: ~~~ -(on 192.168.0.10 or 192.168.0.11) -# droonga-engine-absorb-data --source-host=192.168.0.10 \ - --destination-host=192.168.0.11 -Start to absorb data from 192.168.0.10 - to 192.168.0.11 +(on 192.168.100.50 or 192.168.100.51) +# droonga-engine-absorb-data --source-host=192.168.100.50 \ + --destination-host=192.168.100.51 +Start to absorb data from 192.168.100.50 + to 192.168.100.51 dataset = Default port = 10031 tag = droonga @@ -459,7 +459,7 @@ Done. 以上の操作で、2つのクラスタの内容が完全に同期されました。確かめてみましょう: ~~~ -# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.50:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -510,7 +510,7 @@ Done. ] ] ] -# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.51:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -567,26 +567,26 @@ Done. これらの2つのクラスタを結合するために、以下のコマンド列を実行しましょう: - (on 192.168.0.10) + (on 192.168.100.50) # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ - --add-replica-hosts=192.168.0.11 + --add-replica-hosts=192.168.100.51 - (on 192.168.0.11) + (on 192.168.100.51) # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ - --add-replica-hosts=192.168.0.10 + --add-replica-hosts=192.168.100.50 これで、1つだけクラスタがある状態になりました。最初の状態に戻ったという事になります。 ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } Modified: ja/tutorial/1.0.6/groonga/index.md (+13 -13) =================================================================== --- ja/tutorial/1.0.6/groonga/index.md 2014-08-19 12:38:12 +0900 (5eea2af) +++ ja/tutorial/1.0.6/groonga/index.md 2014-08-19 12:45:19 +0900 (e7f9680) @@ -59,7 +59,7 @@ Droongaベースのデータベースシステムは、*Droongaクラスタ*と Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュータによって構成されます。 よって、Droongaクラスタを構築するには複数のDroongaノードをセットアップする必要があります。 -`192.168.0.10`と`192.168.0.11`の2つのコンピュータがあると仮定しましょう。 +`192.168.100.50`と`192.168.100.51`の2つのコンピュータがあると仮定しましょう。 1. *それぞれのコンピュータで*、プラットフォームごとに要求されるパッケージをインストールする。 @@ -99,7 +99,7 @@ Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュ このファイルはDroongaクラスタの構成を定義する物です。 データセット名を`--dataset`オプション、各DroongaノードのIPアドレスを`--hosts`オプションで、以下のように指定して下さい: - # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.11 \ + # droonga-engine-catalog-generate --hosts=192.168.100.50,192.168.100.51 \ --output=./catalog.json コンピュータが1台だけの単なる検証用の構成をセットアップする場合は、以下のようにします: @@ -109,7 +109,7 @@ Droongaクラスタは、*Droongaノード*と呼ばれる複数のコンピュ 6. *すべてのDroongaノードに*、先程作成した`catalog.json`を共有します。 - # scp ~/droonga/catalog.json 192.168.0.11:~/droonga/ + # scp ~/droonga/catalog.json 192.168.100.51:~/droonga/ (もしくは、できあがったファイルをコピーする代わりに、各コンピュータ上で同じ設定の`catalog.json`を作成しても結構です。) @@ -128,7 +128,7 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ サービスを起動するには、各Droongaノードで以下のようにコマンドを実行します: - # host=192.168.0.10 + # host=192.168.100.50 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -146,7 +146,7 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ この情報は、クラスタ内の他のDroongaノードとの通信のために使われます。 よって、別のDroongaノード上では以下のように別のホスト名を指定する事になります: - # host=192.168.0.11 + # host=192.168.100.51 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ ... @@ -157,13 +157,13 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ コマンドはHTTP経由で実行できます: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -174,13 +174,13 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ Droongaはクラスタで動作するので、他のエンドポイントも同じ結果を返します。 ~~~ -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -200,7 +200,7 @@ Droongaはクラスタで動作するので、他のエンドポイントも同 新しいテーブル `Store` を作るには、`table_create` コマンドにあたるGETリクエストを送信して下さい: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_create?name=Store&flags=TABLE_PAT_KEY&key_type=ShortText" | jq "." [ [ @@ -346,7 +346,7 @@ Droongaはクラスタで動作するので、他のエンドポイントも同 Droongaはクラスタで動作するので、他のエンドポイントも同じ結果を返します。 ~~~ -# curl "http://192.168.0.11:10041/d/table_list" | jq "." +# curl "http://192.168.100.51:10041/d/table_list" | jq "." [ [ 0, Modified: tutorial/1.0.6/add-replica/index.md (+54 -54) =================================================================== --- tutorial/1.0.6/add-replica/index.md 2014-08-19 12:38:12 +0900 (c1f2daf) +++ tutorial/1.0.6/add-replica/index.md 2014-08-19 12:45:19 +0900 (6426a1d) @@ -47,13 +47,13 @@ You can add a new replica, in the backstage, without downing your service. On the other hand, you have to stop inpouring of new data to the cluster until the new node starts working. (In the future we'll provide mechanism to add new nodes completely silently without any stopping of data-flow, but currently can't.) -Assume that there is a Droonga cluster constructed with two replica nodes `192.168.0.10` and `192.168.0.11`, and we are going to add a new replica node `192.168.0.12`. +Assume that there is a Droonga cluster constructed with two replica nodes `192.168.100.50` and `192.168.100.51`, and we are going to add a new replica node `192.168.100.52`. ### Setup a new node First, prepare a new computer, install required softwares and configure them. - (on 192.168.0.12) + (on 192.168.100.52) # apt-get update # apt-get -y upgrade # apt-get install -y ruby ruby-dev build-essential nodejs nodejs-legacy npm @@ -62,23 +62,23 @@ First, prepare a new computer, install required softwares and configure them. For the new node, you have to copy the `catalog.json` from existing node of the cluster. - (on 192.168.0.12) + (on 192.168.100.52) # mkdir ~/droonga - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ Note, you cannot add a non-empty node to an existing cluster. If the computer was used as a Droonga node in old days, then you must clear old data at first. - (on 192.168.0.12) + (on 192.168.100.52) # kill $(cat ~/droonga/droonga-engine.pid) # rm -rf ~/droonga # mkdir ~/droonga - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ Let's start the server. - (on 192.168.0.12) - # host=192.168.0.12 + (on 192.168.100.52) + # host=192.168.100.52 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -98,35 +98,35 @@ Even if you send requests to the new node, it just forwards all of them to other You can confirm that, via the `system.status` command: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -159,10 +159,10 @@ If you are reading this tutorial sequentially after the [previous topic](../dump 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) + (on 192.168.100.52) # cd ~/droonga - # droonga-engine-join --host=192.168.0.12 \ - --replica-source-host=192.168.0.10 + # droonga-engine-join --host=192.168.100.52 \ + --replica-source-host=192.168.100.50 Joining new replica to the cluster... ... Update existing hosts in the cluster... @@ -180,16 +180,16 @@ All nodes' `catalog.json` are also updated, and now, yes, the new node starts wo You can confirm that, via the `system.status` command: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } @@ -213,15 +213,15 @@ Then you have to remove dead nodes from the cluster. Of course, even if a node is still working, you may plan to remove it to reuse for another purpose. -Assume that there is a Droonga cluster constructed with trhee replica nodes `192.168.0.10`, `192.168.0.11` and `192.168.0.12`, and planning to remove the last node `192.168.0.12` from the cluster. +Assume that there is a Droonga cluster constructed with trhee replica nodes `192.168.100.50`, `192.168.100.51` and `192.168.100.52`, and planning to remove the last node `192.168.100.52` from the cluster. ### 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, in the directory the `catalog.json` is located, like: - (on 192.168.0.10) + (on 192.168.100.50) # cd ~/droonga - # droonga-engine-unjoin --host=192.168.0.12 + # droonga-engine-unjoin --host=192.168.100.52 Unjoining replica from the cluster... ... Done. @@ -235,35 +235,35 @@ Now, the node has been successfully unjoined from the cluster. You can confirm that, via the `system.status` command: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -274,25 +274,25 @@ You can confirm that, via the `system.status` command: Replacing of nodes is a combination of those instructions above. -Assume that there is a Droonga cluster constructed with two replica nodes `192.168.0.10` and `192.168.0.11`, the node `192.168.0.11` is unstable, and planning to replace it with a new node `192.168.0.12`. +Assume that there is a Droonga cluster constructed with two replica nodes `192.168.100.50` and `192.168.100.51`, the node `192.168.100.51` is unstable, and planning to replace it with a new node `192.168.100.52`. ### Unjoin an existing replica from the cluster First, remove the unstable node. Remove the node from the cluster, like: - (on 192.168.0.10) + (on 192.168.100.50) # cd ~/droonga - # droonga-engine-unjoin --host=192.168.0.11 + # droonga-engine-unjoin --host=192.168.100.51 Now the node has been gone. You can confirm that via the `system.status` command: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true } } @@ -304,9 +304,9 @@ You can confirm that via the `system.status` command: Next, setup the new replica. Install required packages and starts the server with the `catalog.json` copied from an existing node of the cluster. - (on 192.168.0.12) - # scp 192.168.0.10:~/droonga/catalog.json ~/droonga/ - # host=192.168.0.12 + (on 192.168.100.52) + # scp 192.168.100.50:~/droonga/catalog.json ~/droonga/ + # host=192.168.100.52 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -322,34 +322,34 @@ Install required packages and starts the server with the `catalog.json` copied f Then, join the node to the cluster. - (on 192.168.0.12) + (on 192.168.100.52) # cd ~/droonga - # droonga-engine-join --host=192.168.0.12 \ - --replica-source-host=192.168.0.10 + # droonga-engine-join --host=192.168.100.52 \ + --replica-source-host=192.168.100.50 -Finally a Droonga cluster constructed with two nodes `192.168.0.10` and `192.168.0.12` is here. +Finally a Droonga cluster constructed with two nodes `192.168.100.50` and `192.168.100.52` is here. You can confirm that, via the `system.status` command: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } } -# curl "http://192.168.0.12:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.52:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.12:10031/droonga": { + "192.168.100.52:10031/droonga": { "live": true } } Modified: tutorial/1.0.6/basic/index.md (+13 -13) =================================================================== --- tutorial/1.0.6/basic/index.md 2014-08-19 12:38:12 +0900 (6c8194f) +++ tutorial/1.0.6/basic/index.md 2014-08-19 12:45:19 +0900 (d6e8182) @@ -71,7 +71,7 @@ Following instructions are basically written for a successfully prepared virtual NOTE: Make sure to use instances with >= 2GB memory equipped, at least during installation of required packages for Droonga. Otherwise, you may experience a strange build error. -Assume that the host is `192.168.0.10`. +Assume that the host is `192.168.100.50`. ## Install packages required for the setup process @@ -171,17 +171,17 @@ catalog.json: "slices": [ { "volume": { - "address": "192.168.0.10:10031/droonga.000" + "address": "192.168.100.50:10031/droonga.000" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.001" + "address": "192.168.100.50:10031/droonga.001" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.002" + "address": "192.168.100.50:10031/droonga.002" } } ] @@ -192,17 +192,17 @@ catalog.json: "slices": [ { "volume": { - "address": "192.168.0.10:10031/droonga.010" + "address": "192.168.100.50:10031/droonga.010" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.011" + "address": "192.168.100.50:10031/droonga.011" } }, { "volume": { - "address": "192.168.0.10:10031/droonga.012" + "address": "192.168.100.50:10031/droonga.012" } } ] @@ -228,7 +228,7 @@ For more details of the configuration file `catalog.json`, see [the reference ma Start a Droonga engine, you can start it with the command `droonga-engine`, like: # export DROONGA_BASE_DIR=$PWD - # droonga-engine --host 192.168.0.10 \ + # droonga-engine --host 192.168.100.50 \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-engine.pid @@ -245,7 +245,7 @@ This is the way to stop droonga-engine. Start droonga-engine again: - # droonga-engine --host 192.168.0.10 \ + # droonga-engine --host 192.168.100.50 \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-engine.pid @@ -920,8 +920,8 @@ Let's use the `droonga-http-server` as an HTTP protocol adapter. It is an npm pa Then, run it. - # droonga-http-server --receive-host-name=192.168.0.10 \ - --droonga-engine-host-name=192.168.0.10 \ + # droonga-http-server --receive-host-name=192.168.100.50 \ + --droonga-engine-host-name=192.168.100.50 \ --daemon \ --pid-file $DROONGA_BASE_DIR/droonga-http-server.pid @@ -930,7 +930,7 @@ Then, run it. We're all set. Let's send a search request to the protocol adapter via HTTP. At first, try to get all records of the `Stores` table by a request like following. (Note: The `attributes=_key` parameter means "export the value of the column `_key` to the search result". If you don't set the parameter, each record returned in the `records` will become just a blank array. You can specify multiple column names by the delimiter `,`. For example `attributes=_key,location` will return both the primary key and the location for each record.) - # curl "http://192.168.0.10:10041/tables/Store?attributes=_key&limit=-1" + # curl "http://192.168.100.50:10041/tables/Store?attributes=_key&limit=-1" { "stores": { "count": 40, @@ -1063,7 +1063,7 @@ Because the `count` says `40`, you know there are all 40 records in the table. S Next step, let's try more meaningful query. To search stores which contain "Columbus" in their name, give `Columbus` as the parameter `query`, and give `_key` as the parameter `match_to` which means the column to be searched. Then: - # curl "http://192.168.0.10:10041/tables/Store?query=Columbus&match_to=_key&attributes=_key&limit=-1" + # curl "http://192.168.100.50:10041/tables/Store?query=Columbus&match_to=_key&attributes=_key&limit=-1" { "stores": { "count": 2, Modified: tutorial/1.0.6/dump-restore/index.md (+35 -35) =================================================================== --- tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:38:12 +0900 (f672b22) +++ tutorial/1.0.6/dump-restore/index.md 2014-08-19 12:45:19 +0900 (f8ccc63) @@ -51,11 +51,11 @@ After that, establish that the `drndump` command has been installed successfully The `drndump` command extracts all schema and data as JSONs. Let's dump contents of existing your Droonga cluster. -For example, if your cluster is constructed from two nodes `192.168.0.10` and `192.168.0.11`, and now you are logged in to the host `192.168.0.12` then the command line is: +For example, if your cluster is constructed from two nodes `192.168.100.50` and `192.168.100.51`, and now you are logged in to the host `192.168.100.52` then the command line is: ~~~ -# drndump --host=192.168.0.10 \ - --receiver-host=192.168.0.12 +# drndump --host=192.168.100.50 \ + --receiver-host=192.168.100.52 { "type": "table_create", "dataset": "Default", @@ -112,8 +112,8 @@ Note to these things: The result is printed to the standard output. To save it as a JSONs file, you'll use a redirection like: - # drndump --host=192.168.0.10 \ - --receiver-host=192.168.0.12 \ + # drndump --host=192.168.100.50 \ + --receiver-host=192.168.100.52 \ > dump.jsons @@ -135,13 +135,13 @@ After that, establish that the `droonga-send` command has been installed success ### Prepare an empty Droonga cluster -Assume that there is an empty Droonga cluster constructed from two nodes `192.168.0.10` and `192.168.0.11`, now you are logged in to the host `192.168.0.12`, and there is a dump file `dump.jsons`. +Assume that there is an empty Droonga cluster constructed from two nodes `192.168.100.50` and `192.168.100.51`, now you are logged in to the host `192.168.100.52`, and there is a dump file `dump.jsons`. If you are reading this tutorial sequentially, you'll have an existing cluster and the dump file. Make it empty with these commands: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_remove?name=Location" | jq "." [ [ @@ -174,7 +174,7 @@ Make it empty with these commands: After that the cluster becomes empty. Confirm it: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_list" | jq "." [ [ @@ -245,7 +245,7 @@ You just have to pour the contents of the dump file to an empty cluster, by the To restore the cluster from the dump file, run a command line like: ~~~ -# droonga-send --server=192.168.0.10 \ +# droonga-send --server=192.168.100.50 \ dump.jsons ~~~ @@ -319,19 +319,19 @@ It copies all data from an existing cluster to another one directly, so it is re ### Prepare multiple Droonga clusters -Assume that there are two clusters: the source has a node `192.168.0.10`, and the destination has a node `192.168.0.11`. +Assume that there are two clusters: the source has a node `192.168.100.50`, and the destination has a node `192.168.100.51`. If you are reading this tutorial sequentially, you'll have an existing cluster with two nodes. Construct two clusters by `droonga-engine-catalog-modify` and make one cluster empty, with these commands: - (on 192.168.0.10) - # host=192.168.0.10 + (on 192.168.100.50) + # host=192.168.100.50 # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ --replica-hosts=$host - (on 192.168.0.11) - # host=192.168.0.11 + (on 192.168.100.51) + # host=192.168.100.51 # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ --replica-hosts=$host @@ -340,19 +340,19 @@ Construct two clusters by `droonga-engine-catalog-modify` and make one cluster e # curl "$endpoint/d/table_remove?name=Store" # curl "$endpoint/d/table_remove?name=Term" -After that there are two clusters: one contains `192.168.0.10` with data, another contains `192.168.0.11` with no data. Confirm it: +After that there are two clusters: one contains `192.168.100.50` with data, another contains `192.168.100.51` with no data. Confirm it: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true } } } -# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.50:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -403,15 +403,15 @@ After that there are two clusters: one contains `192.168.0.10` with data, anothe ] ] ] -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } } -# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.51:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -437,11 +437,11 @@ Note: `/droonga/system/status` may not return the result like above. It can cach To copy data between two clusters, run the `droonga-engine-absorb-data` command on a node, like: ~~~ -(on 192.168.0.10 or 192.168.0.11) -# droonga-engine-absorb-data --source-host=192.168.0.10 \ - --destination-host=192.168.0.11 -Start to absorb data from 192.168.0.10 - to 192.168.0.11 +(on 192.168.100.50 or 192.168.100.51) +# droonga-engine-absorb-data --source-host=192.168.100.50 \ + --destination-host=192.168.100.51 +Start to absorb data from 192.168.100.50 + to 192.168.100.51 dataset = Default port = 10031 tag = droonga @@ -454,7 +454,7 @@ Done. After that contents of these two clusters are completely synchronized. Confirm it: ~~~ -# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.50:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -505,7 +505,7 @@ After that contents of these two clusters are completely synchronized. Confirm i ] ] ] -# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." +# curl "http://192.168.100.51:10041/d/select?table=Store&output_columns=name&limit=10" | jq "." [ [ 0, @@ -562,26 +562,26 @@ After that contents of these two clusters are completely synchronized. Confirm i Run following command lines to unite these two clusters: - (on 192.168.0.10) + (on 192.168.100.50) # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ - --add-replica-hosts=192.168.0.11 + --add-replica-hosts=192.168.100.51 - (on 192.168.0.11) + (on 192.168.100.51) # droonga-engine-catalog-modify --source=~/droonga/catalog.json \ --update \ - --add-replica-hosts=192.168.0.10 + --add-replica-hosts=192.168.100.50 After that there is just one cluster - yes, it's the initial state. ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } Modified: tutorial/1.0.6/groonga/index.md (+13 -13) =================================================================== --- tutorial/1.0.6/groonga/index.md 2014-08-19 12:38:12 +0900 (bbb6db6) +++ tutorial/1.0.6/groonga/index.md 2014-08-19 12:45:19 +0900 (8190bdb) @@ -50,7 +50,7 @@ A database system based on the Droonga is called *Droonga cluster*. A Droonga cluster is constructed from multiple computers, called *Droonga node*. So you have to set up multiple Droonga nodes for your Droonga cluster. -Assume that you have two computers: `192.168.0.10` and `192.168.0.11`. +Assume that you have two computers: `192.168.100.50` and `192.168.100.51`. 1. Install required platform packages, *on each computer*. @@ -90,7 +90,7 @@ Assume that you have two computers: `192.168.0.10` and `192.168.0.11`. The file defines the structure of your Droonga cluster. You'll specify the name of the dataset via the `--dataset` option and the list of your Droonga node's IP addresses via the `--hosts` option, like: - # droonga-engine-catalog-generate --hosts=192.168.0.10,192.168.0.11 \ + # droonga-engine-catalog-generate --hosts=192.168.100.50,192.168.100.51 \ --output=./catalog.json If you have only one computer and trying to set up it just for testing, then you'll do: @@ -100,7 +100,7 @@ Assume that you have two computers: `192.168.0.10` and `192.168.0.11`. 6. Share the generated `catalog.json` *to your all Droonga nodes*. - # scp ~/droonga/catalog.json 192.168.0.11:~/droonga/ + # scp ~/droonga/catalog.json 192.168.100.51:~/droonga/ (Or, of course, you can generate same `catalog.json` on each computer, instead of copying.) @@ -119,7 +119,7 @@ On the other hand, you have to run multiple servers for each Droonga node to use To start them, run commands like following on each Droonga node: - # host=192.168.0.10 + # host=192.168.100.50 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ --log-file=$DROONGA_BASE_DIR/droonga-engine.log \ @@ -137,7 +137,7 @@ Note that you have to specify the host name of the Droonga node itself via some It will be used to communicate with other Droonga nodes in the cluster. So you have to specify different host name on another Droonga node, like: - # host=192.168.0.11 + # host=192.168.100.51 # export DROONGA_BASE_DIR=$HOME/droonga # droonga-engine --host=$host \ ... @@ -150,13 +150,13 @@ Let's make sure that the cluster works, by the `system.status` command. You can see the result via HTTP, like: ~~~ -# curl "http://192.168.0.10:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.50:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -167,13 +167,13 @@ The result says that two nodes are working correctly. Because it is a cluster, another endpoint returns same result. ~~~ -# curl "http://192.168.0.11:10041/droonga/system/status" | jq "." +# curl "http://192.168.100.51:10041/droonga/system/status" | jq "." { "nodes": { - "192.168.0.10:10031/droonga": { + "192.168.100.50:10031/droonga": { "live": true }, - "192.168.0.11:10031/droonga": { + "192.168.100.51:10031/droonga": { "live": true } } @@ -193,7 +193,7 @@ Requests are completely same to ones for a Groonga server. To create a new table `Store`, you just have to send a GET request for the `table_create` command, like: ~~~ -# endpoint="http://192.168.0.10:10041" +# endpoint="http://192.168.100.50:10041" # curl "$endpoint/d/table_create?name=Store&flags=TABLE_PAT_KEY&key_type=ShortText" | jq "." [ [ @@ -341,7 +341,7 @@ Let's see it by the `table_list` command: Because it is a cluster, another endpoint returns same result. ~~~ -# curl "http://192.168.0.11:10041/d/table_list" | jq "." +# curl "http://192.168.100.51:10041/d/table_list" | jq "." [ [ 0,