[Groonga-commit] droonga/droonga.org at a183fec [gh-pages] Use grndump to extract data

Zurück zum Archiv-Index

SHIMODA Piro Hiroshi null+****@clear*****
Sat Oct 4 14:14:05 JST 2014


SHIMODA "Piro" Hiroshi	2014-10-04 14:14:05 +0900 (Sat, 04 Oct 2014)

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

  Message:
    Use grndump to extract data

  Modified files:
    _po/ja/tutorial/1.0.7/benchmark/index.po
    ja/tutorial/1.0.7/benchmark/index.md
    tutorial/1.0.7/benchmark/index.md

  Modified: _po/ja/tutorial/1.0.7/benchmark/index.po (+30 -13)
===================================================================
--- _po/ja/tutorial/1.0.7/benchmark/index.po    2014-10-04 13:54:51 +0900 (aca9aa7)
+++ _po/ja/tutorial/1.0.7/benchmark/index.po    2014-10-04 14:14:05 +0900 (05e8d81)
@@ -510,26 +510,41 @@ msgstr ""
 msgid "### Synchronize data from Groonga to Droonga"
 msgstr "### GroongaからDroongaへとデータを同期する"
 
+msgid "Next, prepare the Droonga database."
+msgstr "次に、Droongaのデータベースを用意します。"
+
 msgid ""
-"Next, prepare the Droonga database.\n"
-"Send Droonga messages from dump files, like:"
+"You can generate messages for Droonga from Groonga's dump result, by the `grn2"
+"drn` command.\n"
+"Install `grn2drn` Gem package to activate the command."
 msgstr ""
-"次に、Droongaのデータベースを用意します。.\n"
-"ダンプファイルを元にして、以下のようにDroongaのメッセージを送りましょう:"
+"`grn2drn`コマンドを使うと、Groongaのダンプ出力をDroonga用のメッセージに変換することができます。\n"
+"コマンドを利用できるようにするために、`grn2drn` Gemパッケージをインストールしましょう。"
 
 msgid ""
 "~~~\n"
 "(on 192.168.100.50)\n"
 "% sudo gem install grn2drn\n"
-"% time (cat ~/wikipedia-search/config/groonga/schema.grn | \\\n"
-"          grn2drn | \\\n"
-"          droonga-send --server=192.168.100.50 \\\n"
-"                       --report-throughput)\n"
-"% time (cat ~/wikipedia-search/config/groonga/indexes.grn | \\\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"And, the `grndump` command introduced as a part of `rroonga` Gem package provi"
+"des ability to extract all data of an existing Groonga database, flexibly.\n"
+"Dump schemas and data separately and load them to the Droonga cluster."
+msgstr ""
+"また、`rroonga` Gemパッケージの一部として導入される`grndump`コマンドは、既存のGroongaのデータベースからすべてのデータを柔軟に取"
+"り出す機能を提供しています。\n"
+"スキーマ定義とデータを別々にダンプ出力し、Droongaクラスタに流し込みましょう。"
+
+msgid ""
+"~~~\n"
+"(on 192.168.100.50)\n"
+"% time (grndump --no-dump-tables $HOME/groonga/db/db | \\\n"
 "          grn2drn | \\\n"
 "          droonga-send --server=192.168.100.50 \\\n"
 "                       --report-throughput)\n"
-"% time (cat ~/wikipedia-search/data/groonga/ja-pages.grn | \\\n"
+"% time (grndump --no-dump-schema --no-dump-indexes $HOME/groonga/db/db | \\\n"
 "          grn2drn | \\\n"
 "          droonga-send --server=192.168.100.50 \\\n"
 "                       --server=192.168.100.51 \\\n"
@@ -540,11 +555,13 @@ msgstr ""
 
 msgid ""
 "Note that you must send requests for schema and indexes to just one endpoint.\n"
-"Parallel sending of schema definition requests for multiple nodes will break t"
-"he database."
+"Parallel sending of schema definition requests for multiple endpoints will bre"
+"ak the database, because Droonga cannot sort schema changing commands sent to "
+"each node in parallel."
 msgstr ""
 "スキーマ定義とインデックスの定義については単一のエンドポイントに送るように注意して下さい。\n"
-"スキーマ定義のリクエストを複数のノードに並行してバラバラに流し込むと、データベースが壊れた状態になる事があります。"
+"Droongaは複数のノードに並行してバラバラに送られたスキーマ変更コマンドをソートすることができないので、スキーマ定義のリクエストを複数のエンドポイントに"
+"流し込むと、データベースが壊れてしまいます。"
 
 msgid ""
 "This may take much time.\n"

  Modified: ja/tutorial/1.0.7/benchmark/index.md (+14 -9)
===================================================================
--- ja/tutorial/1.0.7/benchmark/index.md    2014-10-04 13:54:51 +0900 (f3df7d4)
+++ ja/tutorial/1.0.7/benchmark/index.md    2014-10-04 14:14:05 +0900 (ffc4166)
@@ -249,21 +249,26 @@ HTTP経由での動作をベンチマーク測定するので、`droonga-engine`
 
 ### GroongaからDroongaへとデータを同期する
 
-次に、Droongaのデータベースを用意します。.
-ダンプファイルを元にして、以下のようにDroongaのメッセージを送りましょう:
+次に、Droongaのデータベースを用意します。
+
+`grn2drn`コマンドを使うと、Groongaのダンプ出力をDroonga用のメッセージに変換することができます。
+コマンドを利用できるようにするために、`grn2drn` Gemパッケージをインストールしましょう。
 
 ~~~
 (on 192.168.100.50)
 % sudo gem install grn2drn
-% time (cat ~/wikipedia-search/config/groonga/schema.grn | \
-          grn2drn | \
-          droonga-send --server=192.168.100.50 \
-                       --report-throughput)
-% time (cat ~/wikipedia-search/config/groonga/indexes.grn | \
+~~~
+
+また、`rroonga` Gemパッケージの一部として導入される`grndump`コマンドは、既存のGroongaのデータベースからすべてのデータを柔軟に取り出す機能を提供しています。
+スキーマ定義とデータを別々にダンプ出力し、Droongaクラスタに流し込みましょう。
+
+~~~
+(on 192.168.100.50)
+% time (grndump --no-dump-tables $HOME/groonga/db/db | \
           grn2drn | \
           droonga-send --server=192.168.100.50 \
                        --report-throughput)
-% time (cat ~/wikipedia-search/data/groonga/ja-pages.grn | \
+% time (grndump --no-dump-schema --no-dump-indexes $HOME/groonga/db/db | \
           grn2drn | \
           droonga-send --server=192.168.100.50 \
                        --server=192.168.100.51 \
@@ -272,7 +277,7 @@ HTTP経由での動作をベンチマーク測定するので、`droonga-engine`
 ~~~
 
 スキーマ定義とインデックスの定義については単一のエンドポイントに送るように注意して下さい。
-スキーマ定義のリクエストを複数のノードに並行してバラバラに流し込むと、データベースが壊れた状態になる事があります。
+Droongaは複数のノードに並行してバラバラに送られたスキーマ変更コマンドをソートすることができないので、スキーマ定義のリクエストを複数のエンドポイントに流し込むと、データベースが壊れてしまいます。
 
 この操作にも時間がかかります。
 それが完了したら、`10041`ポートを監視するGroonga HTTPサーバと、`10042`ポートを監視するDroonga HTTPサーバの、2つのHTTPサーバがある状態となります。

  Modified: tutorial/1.0.7/benchmark/index.md (+13 -8)
===================================================================
--- tutorial/1.0.7/benchmark/index.md    2014-10-04 13:54:51 +0900 (87c26f8)
+++ tutorial/1.0.7/benchmark/index.md    2014-10-04 14:14:05 +0900 (d557977)
@@ -241,20 +241,25 @@ Note: to start `droonga-http-server` with a port number different from Groonga,
 ### Synchronize data from Groonga to Droonga
 
 Next, prepare the Droonga database.
-Send Droonga messages from dump files, like:
+
+You can generate messages for Droonga from Groonga's dump result, by the `grn2drn` command.
+Install `grn2drn` Gem package to activate the command.
 
 ~~~
 (on 192.168.100.50)
 % sudo gem install grn2drn
-% time (cat ~/wikipedia-search/config/groonga/schema.grn | \
-          grn2drn | \
-          droonga-send --server=192.168.100.50 \
-                       --report-throughput)
-% time (cat ~/wikipedia-search/config/groonga/indexes.grn | \
+~~~
+
+And, the `grndump` command introduced as a part of `rroonga` Gem package provides ability to extract all data of an existing Groonga database, flexibly.
+Dump schemas and data separately and load them to the Droonga cluster.
+
+~~~
+(on 192.168.100.50)
+% time (grndump --no-dump-tables $HOME/groonga/db/db | \
           grn2drn | \
           droonga-send --server=192.168.100.50 \
                        --report-throughput)
-% time (cat ~/wikipedia-search/data/groonga/ja-pages.grn | \
+% time (grndump --no-dump-schema --no-dump-indexes $HOME/groonga/db/db | \
           grn2drn | \
           droonga-send --server=192.168.100.50 \
                        --server=192.168.100.51 \
@@ -263,7 +268,7 @@ Send Droonga messages from dump files, like:
 ~~~
 
 Note that you must send requests for schema and indexes to just one endpoint.
-Parallel sending of schema definition requests for multiple nodes will break the database.
+Parallel sending of schema definition requests for multiple endpoints will break the database, because Droonga cannot sort schema changing commands sent to each node in parallel.
 
 This may take much time.
 After all, now you have two HTTP servers: Groonga HTTP server with the port `10041`, and Droonga HTTP Servers with the port `10042`.
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index