[Groonga-commit] droonga/droonga.org at d2ca4fd [gh-pages] Update translation

Back to archive index

SHIMODA Piro Hiroshi null+****@clear*****
Thu Sep 25 04:19:48 JST 2014


SHIMODA "Piro" Hiroshi	2014-09-25 04:19:48 +0900 (Thu, 25 Sep 2014)

  New Revision: d2ca4fd03a93467b75e511c38f9408a4e63a624b
  https://github.com/droonga/droonga.org/commit/d2ca4fd03a93467b75e511c38f9408a4e63a624b

  Message:
    Update translation

  Modified files:
    _po/ja/tutorial/1.0.6/add-replica/index.po
    _po/ja/tutorial/1.0.6/dump-restore/index.po
    ja/tutorial/1.0.6/add-replica/index.md
    ja/tutorial/1.0.6/dump-restore/index.md

  Modified: _po/ja/tutorial/1.0.6/add-replica/index.po (+15 -40)
===================================================================
--- _po/ja/tutorial/1.0.6/add-replica/index.po    2014-09-25 04:07:38 +0900 (82e60ca)
+++ _po/ja/tutorial/1.0.6/add-replica/index.po    2014-09-25 04:19:48 +0900 (3c9c6e7)
@@ -315,17 +315,6 @@ msgstr ""
 "データの同期が完了すると、ノードが自動的に再起動してクラスタに参加します。\n"
 "すべてのノードの`catalog.json`も同時に更新され、この時点をもって、新しいノードは晴れてそのクラスタのreplicaノードとして動作し始めます。"
 
-msgid "To refresh response cacnes, restart the `droonga-http-server` on all nodes:"
-msgstr "レスポンスキャッシュを空にするために、すべてのノードで`droonga-http-server`を再起動しておきます:"
-
-msgid ""
-"~~~\n"
-"(on node0, node1, node2)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
-"~~~"
-msgstr ""
-
 msgid ""
 "You can confirm that they are working as a cluster, via the `system.status` co"
 "mmand:"
@@ -333,7 +322,7 @@ msgstr "これで、ノードがクラスタに参加しました。この事は
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -350,6 +339,11 @@ msgid ""
 "~~~"
 msgstr ""
 
+msgid ""
+"Note that adding an extra unique parameter for each request, to bypass old res"
+"posne caches."
+msgstr "古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。"
+
 msgid "### Resume inpouring of \"write\" requests"
 msgstr "### 書き込みを伴うリクエストの流入を再開する"
 
@@ -443,7 +437,7 @@ msgstr "これで、ノード `node2` がクラスタから離脱しました。
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -454,7 +448,7 @@ msgid ""
 "    }\n"
 "  }\n"
 "}\n"
-"$ curl \"http://node1:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node1:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -465,7 +459,7 @@ msgid ""
 "    }\n"
 "  }\n"
 "}\n"
-"$ curl \"http://node2:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node2:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -480,11 +474,11 @@ msgid ""
 msgstr ""
 
 msgid ""
-"Note that the `node2` also says that the `node2` is not a member of the cluste"
-"r.\n"
+"Look at the point that the `node2` also says `node2` is not a member of the cl"
+"uster.\n"
 "This is the difference between a node unjoined from a cluster and a new node."
 msgstr ""
-"`node2` までもが、`node2` がクラスタの一員ではないと報告していることに注意して下さい。\n"
+"`node2` までもが、`node2` がクラスタの一員ではないと報告していることに注目して下さい。\n"
 "これは、クラスタから離脱したノードと新しいノードとの違いです。"
 
 msgid "## Replace an existing replica node in a cluster with a new one"
@@ -517,21 +511,13 @@ msgid "Refresh response caches:"
 msgstr "レスポンスキャッシュを空にします:"
 
 msgid ""
-"~~~\n"
-"(on node0, node1)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
-"~~~"
-msgstr ""
-
-msgid ""
 "Now the node has been gone.\n"
 "You can confirm that via the `system.status` command:"
 msgstr "これで、ノードがクラスタから離脱しました。この事は `system.status` コマンドで確かめられます:"
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -568,17 +554,6 @@ msgid ""
 "~~~"
 msgstr ""
 
-msgid "And, refresh response caches:"
-msgstr "そして、レスポンスキャッシュを空にします:"
-
-msgid ""
-"~~~\n"
-"(on node0, node2)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
-"~~~"
-msgstr ""
-
 msgid ""
 "Finally a Droonga cluster constructed with two nodes `node0` and `node2` is he"
 "re."
@@ -589,7 +564,7 @@ msgstr "この事は、`system.status` コマンドの結果を見ると確認
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -600,7 +575,7 @@ msgid ""
 "    }\n"
 "  }\n"
 "}\n"
-"$ curl \"http://node2:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node2:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"

  Modified: _po/ja/tutorial/1.0.6/dump-restore/index.po (+33 -69)
===================================================================
--- _po/ja/tutorial/1.0.6/dump-restore/index.po    2014-09-25 04:07:38 +0900 (00d1d1a)
+++ _po/ja/tutorial/1.0.6/dump-restore/index.po    2014-09-25 04:19:48 +0900 (c6a62d2)
@@ -15,7 +15,7 @@ msgid ""
 "---"
 msgstr ""
 "---\n"
-"title: \"Droonga tutorial: データベースのバックアップと復元\"\n"
+"title: \"Droongaチュートリアル: データベースのバックアップと復元\"\n"
 "layout: ja\n"
 "---"
 
@@ -267,26 +267,13 @@ msgid ""
 "~~~"
 msgstr ""
 
-msgid ""
-"And, restart the `droonga-http-server` service on each node to refresh respons"
-"e caches:"
-msgstr "そうしたら、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動しましょう:"
-
-msgid ""
-"~~~\n"
-"(on node0, node1)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
-"~~~"
-msgstr ""
-
 msgid "After that the cluster becomes empty. Confirm it:"
 msgstr "これでクラスタは空になりました。確かめてみましょう:"
 
 msgid ""
 "~~~\n"
 "$ endpoint=\"http://node0:10041\"\n"
-"$ curl \"$endpoint/d/table_list\" | jq \".\"\n"
+"$ curl \"$endpoint/d/table_list?_=$(date +%s)\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -330,7 +317,8 @@ msgid ""
 "    ]\n"
 "  ]\n"
 "]\n"
-"$ curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10\" | jq \".\"\n"
+"$ curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10&_=$(date +"
+"%s)\"\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -349,6 +337,15 @@ msgid ""
 "~~~"
 msgstr ""
 
+msgid ""
+"Note: you have to add an extra parameter `_=$(date +%s)` to bypass the respons"
+"e cache.\n"
+"If you forget to add it, you'll see unexpected cached result based on old conf"
+"igurations."
+msgstr ""
+"注意: レスポンスキャッシュを無視するために、追加のパラメータとして `_=$(date +%s)` を加えていることに注意して下さい。\n"
+"これを忘れると、古い設定に基づく異キャッシュされたレスポンス(期待に反した内容)を目にしてしまうことになるでしょう。"
+
 msgid "### Restore data from a dump result, to an empty Droonga cluster"
 msgstr "### ダンプ結果から空のDroongaクラスタへデータを復元する"
 
@@ -363,11 +360,6 @@ msgstr ""
 "ァイルからクラスタを再構築する事ができます。\n"
 "やり方は単純で、単にダンプファイルを `droonga-send` コマンドを使ってからのクラスタに流し込むだけです。"
 
-msgid ""
-"Before restoration, restart the `droonga-http-server` service on each node to "
-"refresh response caches:"
-msgstr "復元の前に、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動しておきます:"
-
 msgid "To restore the cluster from the dump file, run a command line like:"
 msgstr "ダンプファイルからクラスタの内容を復元するには、以下のようなコマンドを実行します:"
 
@@ -378,23 +370,21 @@ msgid ""
 "~~~"
 msgstr ""
 
+msgid "Note:"
+msgstr "注意:"
+
 msgid ""
 " * You must specify valid host name or IP address of one of nodes in the clust"
-"er, via the option `--host`.\n"
-" * You must specify valid host name or IP address of the computer you are logg"
-"ed in, via the option `--receiver-host`.\n"
-"   It is used by the Droonga cluster, to send response messages."
+"er, via the option `--host`."
 msgstr ""
-" * `--host` オプションには、クラスタ内のいずれかのノードの正しいホスト名またはIPアドレスを指定します。\n"
-" * `--receiver-host` オプションには、今操作しているコンピュータ自身の正しいホスト名またはIPアドレスを指定します。\n"
-"   この情報は、Droongaクラスタがメッセージを送り返すために使われます。"
 
 msgid "Then the data is completely restored. Confirm it:"
 msgstr "これで、データが完全に復元されました。確かめてみましょう:"
 
 msgid ""
 "~~~\n"
-"$ curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10\" | jq \".\"\n"
+"$ curl \"$endpoint/d/select?table=Store&output_columns=name&limit=10&_=$(date +"
+"%s)\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -448,6 +438,11 @@ msgid ""
 "~~~"
 msgstr ""
 
+msgid ""
+"Note that adding an extra unique parameter for each request, to bypass old res"
+"posne caches."
+msgstr "古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。"
+
 msgid "## Duplicate an existing Droonga cluster to another empty cluster directly"
 msgstr "## 既存のクラスタを別の空のクラスタに直接複製する"
 
@@ -484,8 +479,6 @@ msgstr ""
 msgid ""
 "~~~\n"
 "(on node0)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
 "# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json "
 "\\\n"
 "                                --update \\\n"
@@ -496,8 +489,6 @@ msgstr ""
 msgid ""
 "~~~\n"
 "(on node1)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
 "# droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json "
 "\\\n"
 "                                --update \\\n"
@@ -510,11 +501,6 @@ msgid ""
 msgstr ""
 
 msgid ""
-"Note, don't forget to restart the `droonga-http-server` service on each node t"
-"o refresh response caches, before separation."
-msgstr "クラスタを分割する前に、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動するのを忘れないように注意して下さい。"
-
-msgid ""
 "After that there are two clusters: one contains `node0` with data, another con"
 "tains `node1` with no data. Confirm it:"
 msgstr ""
@@ -523,7 +509,7 @@ msgstr ""
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"
@@ -531,8 +517,8 @@ msgid ""
 "    }\n"
 "  }\n"
 "}\n"
-"$ curl \"http://node0:10041/d/select?table=Store&output_columns=name&limit=10\" "
-"| jq \".\"\n"
+"$ curl \"http://node0:10041/d/select?table=Store&output_columns=name&limit=10&_"
+"=$(date +%s)\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -583,7 +569,7 @@ msgid ""
 "    ]\n"
 "  ]\n"
 "]\n"
-"$ curl \"http://node1:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node1:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node1:10031/droonga\": {\n"
@@ -591,8 +577,8 @@ msgid ""
 "    }\n"
 "  }\n"
 "}\n"
-"$ curl \"http://node1:10041/d/select?table=Store&output_columns=name&limit=10\" "
-"| jq \".\"\n"
+"$ curl \"http://node1:10041/d/select?table=Store&output_columns=name&limit=10&_"
+"=$(date +%s)\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -641,27 +627,14 @@ msgid ""
 msgstr ""
 
 msgid ""
-"To refresh response cacnes, restart the `droonga-http-server` on the destinati"
-"on node:"
-msgstr "レスポンスキャッシュを空にするために、複製先ノードの`droonga-http-server`サービスを再起動します:"
-
-msgid ""
-"~~~\n"
-"(on node1)\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
-"~~~"
-msgstr ""
-
-msgid ""
 "After that contents of these two clusters are completely synchronized. Confirm"
 " it:"
 msgstr "以上の操作で、2つのクラスタの内容が完全に同期されました。確かめてみましょう:"
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node1:10041/d/select?table=Store&output_columns=name&limit=10\" "
-"| jq \".\"\n"
+"$ curl \"http://node1:10041/d/select?table=Store&output_columns=name&limit=10&_"
+"=$(date +%s)\" | jq \".\"\n"
 "[\n"
 "  [\n"
 "    0,\n"
@@ -728,8 +701,6 @@ msgid ""
 "\\\n"
 "                                --update \\\n"
 "                                --add-replica-hosts=node1\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
 "~~~"
 msgstr ""
 
@@ -740,22 +711,15 @@ msgid ""
 "\\\n"
 "                                --update \\\n"
 "                                --add-replica-hosts=node0\n"
-"# service droonga-http-server restart\n"
-" * Restarting  droonga-http-server             [ OK ]\n"
 "~~~"
 msgstr ""
 
-msgid ""
-"Note that you always have to restart the `droonga-http-server` service on node"
-"s to refresh response caches."
-msgstr "レスポンスキャッシュを空にするために、常に`droonga-http-server`サービスを再起動する必要があることに注意しましょう。"
-
 msgid "After that there is just one cluster - yes, it's the initial state."
 msgstr "これで、1つだけクラスタがある状態になりました。最初の状態に戻ったという事になります。"
 
 msgid ""
 "~~~\n"
-"$ curl \"http://node0:10041/droonga/system/status\" | jq \".\"\n"
+"$ curl \"http://node0:10041/droonga/system/status?_=$(date +%s)\" | jq \".\"\n"
 "{\n"
 "  \"nodes\": {\n"
 "    \"node0:10031/droonga\": {\n"

  Modified: ja/tutorial/1.0.6/add-replica/index.md (+16 -38)
===================================================================
--- ja/tutorial/1.0.6/add-replica/index.md    2014-09-25 04:07:38 +0900 (b06b1be)
+++ ja/tutorial/1.0.6/add-replica/index.md    2014-09-25 04:19:48 +0900 (97d270a)
@@ -167,18 +167,10 @@ Done.
 データの同期が完了すると、ノードが自動的に再起動してクラスタに参加します。
 すべてのノードの`catalog.json`も同時に更新され、この時点をもって、新しいノードは晴れてそのクラスタのreplicaノードとして動作し始めます。
 
-レスポンスキャッシュを空にするために、すべてのノードで`droonga-http-server`を再起動しておきます:
-
-~~~
-(on node0, node1, node2)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 これで、ノードがクラスタに参加しました。この事は `system.status` コマンドで確かめられます:
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -194,6 +186,8 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
 }
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ### 書き込みを伴うリクエストの流入を再開する
 
 さて、準備ができました。
@@ -231,18 +225,10 @@ Done.
 すると、ノードがクラスタから自動的に離脱し、すべてのノードの `catalog.json` も同時に更新されます。
 これで、ノードはクラスタから無事離脱しました。
 
-レスポンスキャッシュを空にするために、すべてのノードで`droonga-http-server`を再起動しておきます:
-
-~~~
-(on node0, node1, node2)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 これで、ノード `node2` がクラスタから離脱しました。この事は `system.status` コマンドで確かめられます:
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -253,7 +239,7 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
     }
   }
 }
-$ curl "http://node1:10041/droonga/system/status" | jq "."
+$ curl "http://node1:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -264,7 +250,7 @@ $ curl "http://node1:10041/droonga/system/status" | jq "."
     }
   }
 }
-$ curl "http://node2:10041/droonga/system/status" | jq "."
+$ curl "http://node2:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -277,7 +263,9 @@ $ curl "http://node2:10041/droonga/system/status" | jq "."
 }
 ~~~
 
-`node2` までもが、`node2` がクラスタの一員ではないと報告していることに注意して下さい。
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
+`node2` までもが、`node2` がクラスタの一員ではないと報告していることに注目して下さい。
 これは、クラスタから離脱したノードと新しいノードとの違いです。
 
 
@@ -298,16 +286,10 @@ $ droonga-engine-unjoin --host=node1
 
 レスポンスキャッシュを空にします:
 
-~~~
-(on node0, node1)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 これで、ノードがクラスタから離脱しました。この事は `system.status` コマンドで確かめられます:
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -317,6 +299,8 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
 }
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ### 新しいreplicaを追加する
 
 次に、新しいreplica `node2`を用意します。
@@ -350,20 +334,12 @@ $ droonga-engine-join --host=node2 \
                       --replica-source-host=node0
 ~~~
 
-そして、レスポンスキャッシュを空にします:
-
-~~~
-(on node0, node2)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 最終的に、`node0` と `node2` の2つのノードからなるDroongaクラスタができあがりました。
 
 この事は、`system.status` コマンドの結果を見ると確認できます:
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -374,7 +350,7 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
     }
   }
 }
-$ curl "http://node2:10041/droonga/system/status" | jq "."
+$ curl "http://node2:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -387,6 +363,8 @@ $ curl "http://node2:10041/droonga/system/status" | jq "."
 }
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ## まとめ
 
 このチュートリアルでは、既存の[Droonga][]クラスタに新しいreplicaノードを追加する方法を学びました。

  Modified: ja/tutorial/1.0.6/dump-restore/index.md (+22 -49)
===================================================================
--- ja/tutorial/1.0.6/dump-restore/index.md    2014-09-25 04:07:38 +0900 (211b6a0)
+++ ja/tutorial/1.0.6/dump-restore/index.md    2014-09-25 04:19:48 +0900 (e6e8f40)
@@ -173,19 +173,11 @@ $ curl "$endpoint/d/table_remove?name=Term" | jq "."
 ]
 ~~~
 
-そうしたら、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動しましょう:
-
-~~~
-(on node0, node1)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 これでクラスタは空になりました。確かめてみましょう:
 
 ~~~
 $ endpoint="http://node0:10041"
-$ curl "$endpoint/d/table_list" | jq "."
+$ curl "$endpoint/d/table_list?_=$(date +%s)" | jq "."
 [
   [
     0,
@@ -229,7 +221,7 @@ $ curl "$endpoint/d/table_list" | jq "."
     ]
   ]
 ]
-$ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
+$ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10&_=$(date +%s)"" | jq "."
 [
   [
     0,
@@ -247,19 +239,14 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
 ]
 ~~~
 
+注意: レスポンスキャッシュを無視するために、追加のパラメータとして `_=$(date +%s)` を加えていることに注意して下さい。
+これを忘れると、古い設定に基づく異キャッシュされたレスポンス(期待に反した内容)を目にしてしまうことになるでしょう。
+
 ### ダンプ結果から空のDroongaクラスタへデータを復元する
 
 `drndump` の実行結果はダンプ出力元と同じ内容のデータセットを作るために必要な情報をすべて含んでいます。そのため、クラスタが壊れた場合でも、ダンプファイルからクラスタを再構築する事ができます。
 やり方は単純で、単にダンプファイルを `droonga-send` コマンドを使ってからのクラスタに流し込むだけです。
 
-復元の前に、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動しておきます:
-
-~~~
-(on node0, node1)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 ダンプファイルからクラスタの内容を復元するには、以下のようなコマンドを実行します:
 
 ~~~
@@ -267,16 +254,14 @@ $ droonga-send --server=node0  \
                     dump.jsons
 ~~~
 
-以下の点に注意して下さい:
+注意:
 
- * `--host` オプションには、クラスタ内のいずれかのノードの正しいホスト名またはIPアドレスを指定します。
- * `--receiver-host` オプションには、今操作しているコンピュータ自身の正しいホスト名またはIPアドレスを指定します。
-   この情報は、Droongaクラスタがメッセージを送り返すために使われます。
+ * You must specify valid host name or IP address of one of nodes in the cluster, via the option `--host`.
 
 これで、データが完全に復元されました。確かめてみましょう:
 
 ~~~
-$ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
+$ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10&_=$(date +%s)" | jq "."
 [
   [
     0,
@@ -329,6 +314,8 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
 ]
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ## 既存のクラスタを別の空のクラスタに直接複製する
 
 複数のDroongaクラスタが存在する場合、片方のクラスタの内容をもう片方のクラスタに複製することができます。
@@ -342,8 +329,6 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
 
 ~~~
 (on node0)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
 # droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \
                                 --update \
                                 --replica-hosts=node0
@@ -351,8 +336,6 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
 
 ~~~
 (on node1)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
 # droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \
                                 --update \
                                 --replica-hosts=node1
@@ -362,13 +345,11 @@ $ curl "$endpoint/d/table_remove?name=Store"
 $ curl "$endpoint/d/table_remove?name=Term"
 ~~~
 
-クラスタを分割する前に、レスポンスキャッシュを空にするために`droonga-http-server`サービスを再起動するのを忘れないように注意して下さい。
-
 これで、ノード `node0` を含む複製元クラスタと、ノード `node1` を含む複製先の空のクラスタの、2つのクラスタができました。確かめてみましょう:
 
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -376,7 +357,7 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
     }
   }
 }
-$ curl "http://node0:10041/d/select?table=Store&output_columns=name&limit=10" | jq "."
+$ curl "http://node0:10041/d/select?table=Store&output_columns=name&limit=10&_=$(date +%s)" | jq "."
 [
   [
     0,
@@ -427,7 +408,7 @@ $ curl "http://node0:10041/d/select?table=Store&output_columns=name&limit=10" |
     ]
   ]
 ]
-$ curl "http://node1:10041/droonga/system/status" | jq "."
+$ curl "http://node1:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node1:10031/droonga": {
@@ -435,7 +416,7 @@ $ curl "http://node1:10041/droonga/system/status" | jq "."
     }
   }
 }
-$ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" | jq "."
+$ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10&_=$(date +%s)" | jq "."
 [
   [
     0,
@@ -453,6 +434,8 @@ $ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" |
 ]
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 
 ### 2つのDroongaクラスタの間でデータを複製する
 
@@ -473,18 +456,10 @@ Absorbing...
 Done.
 ~~~
 
-レスポンスキャッシュを空にするために、複製先ノードの`droonga-http-server`サービスを再起動します:
-
-~~~
-(on node1)
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
-~~~
-
 以上の操作で、2つのクラスタの内容が完全に同期されました。確かめてみましょう:
 
 ~~~
-$ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" | jq "."
+$ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10&_=$(date +%s)" | jq "."
 [
   [
     0,
@@ -537,6 +512,8 @@ $ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" |
 ]
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ### 2つのDroongaクラスタを結合する
 
 これらの2つのクラスタを結合するために、以下のコマンド列を実行しましょう:
@@ -546,8 +523,6 @@ $ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" |
 # droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \
                                 --update \
                                 --add-replica-hosts=node1
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
 ~~~
 
 ~~~
@@ -555,16 +530,12 @@ $ curl "http://node1:10041/d/select?table=Store&output_columns=name&limit=10" |
 # droonga-engine-catalog-modify --source=~droonga-engine/droonga/catalog.json \
                                 --update \
                                 --add-replica-hosts=node0
-# service droonga-http-server restart
- * Restarting  droonga-http-server             [ OK ]
 ~~~
 
-レスポンスキャッシュを空にするために、常に`droonga-http-server`サービスを再起動する必要があることに注意しましょう。
-
 これで、1つだけクラスタがある状態になりました。最初の状態に戻ったという事になります。
 
 ~~~
-$ curl "http://node0:10041/droonga/system/status" | jq "."
+$ curl "http://node0:10041/droonga/system/status?_=$(date +%s)" | jq "."
 {
   "nodes": {
     "node0:10031/droonga": {
@@ -577,6 +548,8 @@ $ curl "http://node0:10041/droonga/system/status" | jq "."
 }
 ~~~
 
+古いレスポンスキャッシュを無視するために、各リクエストに追加の一意なパラメータを加えていることに注意して下さい。
+
 ## まとめ
 
 このチュートリアルでは、[Droonga][]クラスタのバックアップとデータの復元の方法を実践しました。
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index