[Groonga-commit] droonga/droonga.org at 20bb535 [gh-pages] Add steps to confirm changed cluster members

アーカイブの一覧に戻る

SHIMODA Piro Hiroshi null+****@clear*****
Mon Oct 6 14:50:20 JST 2014


SHIMODA "Piro" Hiroshi	2014-10-06 14:50:20 +0900 (Mon, 06 Oct 2014)

  New Revision: 20bb535b3dc03fe89571ab935b89f3e816d1d443
  https://github.com/droonga/droonga.org/commit/20bb535b3dc03fe89571ab935b89f3e816d1d443

  Message:
    Add steps to confirm changed cluster members

  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 (+45 -6)
===================================================================
--- _po/ja/tutorial/1.0.7/benchmark/index.po    2014-10-06 14:40:51 +0900 (7c13a10)
+++ _po/ja/tutorial/1.0.7/benchmark/index.po    2014-10-06 14:50:20 +0900 (e18589c)
@@ -1074,10 +1074,28 @@ msgstr ""
 msgid ""
 "After that both endpoints `node0` and `node1` work as a Droonga cluster with t"
 "wo nodes.\n"
-"Run the benchmark."
+"Make sure that two nodes are actually detected:"
 msgstr ""
 "これにより、`node0`と`node1`は2ノード構成のDroongaクラスタとして動作するようになります。\n"
-"ベンチマークを実行しましょう。"
+"実際にノードが2つ認識されていることを確認しましょう:"
+
+msgid ""
+"~~~\n"
+"(on node3)\n"
+"% sudo apt-get install -y jq\n"
+"% curl \"http://node0:10042/droonga/system/status\" | jq .\n"
+"{\n"
+"  \"nodes\": {\n"
+"    \"node0:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    },\n"
+"    \"node1:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    }\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
 
 msgid ""
 "~~~\n"
@@ -1122,7 +1140,7 @@ msgstr ""
 "`--default-hosts`オプションにカンマ区切りで複数のホスト名を指定することで、その代替とすることができます。"
 
 msgid "And, the path to the result file also changed."
-msgstr "また、結果の保存先のパスも変わっています。"
+msgstr "また、結果の保存先のパスも変えています。"
 
 msgid "#### Benchmark Droonga with three nodes"
 msgstr "#### 3ノード構成でのDroongaのベンチマーク"
@@ -1143,10 +1161,31 @@ msgstr ""
 msgid ""
 "After that all endpoints `node0`, `node1`, and `node2` work as a Droonga clust"
 "er with three nodes.\n"
-"Run the benchmark."
+"Make sure that three nodes are actually detected:"
 msgstr ""
 "これで、`node0`, `node1`, `node2`のすべてのノードが3ノード構成のクラスタとして動作するようになります。\n"
-"ベンチマークを実行しましょう。"
+"実際にノードが3つ認識されていることを確認しましょう:"
+
+msgid ""
+"~~~\n"
+"(on node3)\n"
+"% sudo apt-get install -y jq\n"
+"% curl \"http://node0:10042/droonga/system/status\" | jq .\n"
+"{\n"
+"  \"nodes\": {\n"
+"    \"node0:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    },\n"
+"    \"node1:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    },\n"
+"    \"node2:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    }\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
 
 msgid ""
 "~~~\n"
@@ -1165,7 +1204,7 @@ msgid ""
 msgstr ""
 
 msgid "Note that both `--default-hosts` and `--output-path` are changed again."
-msgstr "また`--default-hosts`と`--output-path`の指定が変わっていることに注意して下さい。"
+msgstr "また`--default-hosts`と`--output-path`の指定も変えていることに注意して下さい。"
 
 msgid "## Analyze the result"
 msgstr "## 結果を分析する"

  Modified: ja/tutorial/1.0.7/benchmark/index.md (+41 -2)
===================================================================
--- ja/tutorial/1.0.7/benchmark/index.md    2014-10-06 14:40:51 +0900 (7cf6c9b)
+++ ja/tutorial/1.0.7/benchmark/index.md    2014-10-06 14:50:20 +0900 (f606f72)
@@ -582,6 +582,24 @@ Droongaノードの上でGroongaを動かしている場合は、CPU資源とメ
 ~~~
 
 これにより、`node0`と`node1`は2ノード構成のDroongaクラスタとして動作するようになります。
+実際にノードが2つ認識されていることを確認しましょう:
+
+~~~
+(on node3)
+% sudo apt-get install -y jq
+% curl "http://node0:10042/droonga/system/status" | jq .
+{
+  "nodes": {
+    "node0:10031/droonga": {
+      "live": true
+    },
+    "node1:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 ベンチマークを実行しましょう。
 
 ~~~
@@ -607,7 +625,7 @@ Droongaクラスタの性能を有効に測定するためには、各ノード
 もちろん、実際のプロダクション環境ではこのようなリクエストの分配はロードバランサーによって行われるべきですが、ベンチマークのためだけにロードバランサーを設定するのは煩雑です。
 `--default-hosts`オプションにカンマ区切りで複数のホスト名を指定することで、その代替とすることができます。
 
-また、結果の保存先のパスも変わっています。
+また、結果の保存先のパスも変えています。
 
 
 #### 3ノード構成でのDroongaのベンチマーク
@@ -623,6 +641,27 @@ Droongaクラスタの性能を有効に測定するためには、各ノード
 ~~~
 
 これで、`node0`, `node1`, `node2`のすべてのノードが3ノード構成のクラスタとして動作するようになります。
+実際にノードが3つ認識されていることを確認しましょう:
+
+~~~
+(on node3)
+% sudo apt-get install -y jq
+% curl "http://node0:10042/droonga/system/status" | jq .
+{
+  "nodes": {
+    "node0:10031/droonga": {
+      "live": true
+    },
+    "node1:10031/droonga": {
+      "live": true
+    },
+    "node2:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 ベンチマークを実行しましょう。
 
 ~~~
@@ -639,7 +678,7 @@ Droongaクラスタの性能を有効に測定するためには、各ノード
     --output-path=$PWD/droonga-result-3nodes.csv
 ~~~
 
-また`--default-hosts`と`--output-path`の指定が変わっていることに注意して下さい。
+また`--default-hosts`と`--output-path`の指定も変えていることに注意して下さい。
 
 ## 結果を分析する
 

  Modified: tutorial/1.0.7/benchmark/index.md (+39 -0)
===================================================================
--- tutorial/1.0.7/benchmark/index.md    2014-10-06 14:40:51 +0900 (8ef25d7)
+++ tutorial/1.0.7/benchmark/index.md    2014-10-06 14:50:20 +0900 (fc01148)
@@ -573,6 +573,24 @@ Before benchmarking, join the second node to the cluster.
 ~~~
 
 After that both endpoints `node0` and `node1` work as a Droonga cluster with two nodes.
+Make sure that two nodes are actually detected:
+
+~~~
+(on node3)
+% sudo apt-get install -y jq
+% curl "http://node0:10042/droonga/system/status" | jq .
+{
+  "nodes": {
+    "node0:10031/droonga": {
+      "live": true
+    },
+    "node1:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 Run the benchmark.
 
 ~~~
@@ -614,6 +632,27 @@ Before benchmarking, join the last node to the cluster.
 ~~~
 
 After that all endpoints `node0`, `node1`, and `node2` work as a Droonga cluster with three nodes.
+Make sure that three nodes are actually detected:
+
+~~~
+(on node3)
+% sudo apt-get install -y jq
+% curl "http://node0:10042/droonga/system/status" | jq .
+{
+  "nodes": {
+    "node0:10031/droonga": {
+      "live": true
+    },
+    "node1:10031/droonga": {
+      "live": true
+    },
+    "node2:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 Run the benchmark.
 
 ~~~
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る