[Groonga-commit] droonga/presentation-droonga-meetup-1-introduction at 1b7491e [master] Update how to prepare database of Droonga

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jul 29 10:56:36 JST 2014


YUKI Hiroshi	2014-07-29 10:56:36 +0900 (Tue, 29 Jul 2014)

  New Revision: 1b7491ebba5fcbec9a92a7d9b143d7c2898d237b
  https://github.com/droonga/presentation-droonga-meetup-1-introduction/commit/1b7491ebba5fcbec9a92a7d9b143d7c2898d237b

  Message:
    Update how to prepare database of Droonga

  Modified files:
    benchmark/README.md

  Modified: benchmark/README.md (+15 -9)
===================================================================
--- benchmark/README.md    2014-07-28 22:53:29 +0900 (f0e7826)
+++ benchmark/README.md    2014-07-29 10:56:36 +0900 (6ab58a5)
@@ -130,25 +130,31 @@ workerの数は以下の方法で調べた物を設定する(既定値は4)
 
 ### データベースの用意
 
+ダンプからデータベースの内容を用意する。
+droonga-sendを使うが、スキーマ定義の時は宛先は1ノードだけにする。
+(複数ノードにリクエストを分散すると、スキーマ定義が期待通りに行われないため。
+データ投入の時は、負荷分散のため、宛先は3ノードに分散してもよい。
+
     % time (cat ~/wikipedia-search/config/groonga/schema.grn | grn2drn | \
-              droonga-send --server=192.168.200.254 \
-                           --server=192.168.200.3 \
-                           --server=192.168.200.4)
+              droonga-send --server=192.168.200.254)
     % time (cat ~/wikipedia-search/config/groonga/indexes.grn | grn2drn | \
-              droonga-send --server=192.168.200.254 \
-                           --server=192.168.200.3 \
-                           --server=192.168.200.4)
+              droonga-send --server=192.168.200.254)
     % time (cat ~/wikipedia-search/data/groonga/ja-pages.grn | grn2drn | \
               droonga-send --server=192.168.200.254 \
                            --server=192.168.200.3 \
                            --server=192.168.200.4)
 
-または
+データベースの内容をダンプして直接流し込む場合も同様に、スキーマ定義とデータ投入で分散の有無を分ける必要がある。
 
-    % time (grndump $HOME/groonga/db/db | grn2drn | \
+    % time (grndump --no-dump-tables $HOME/groonga/db/db | grn2drn | \
+              droonga-send --server=192.168.200.254 \
+                           --report-throughput)
+    % time (grndump --no-dump-schema --no-dump-indexes $HOME/groonga/db/db | \
+              grn2drn | \
               droonga-send --server=192.168.200.254 \
                            --server=192.168.200.3 \
-                           --server=192.168.200.4)
+                           --server=192.168.200.4 \
+                           --report-throughput)
 
 ## ベンチマーク実行環境のセットアップ
 
-------------- next part --------------
HTML����������������������������...
Download 



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