[Groonga-commit] droonga/droonga.org at 2a25a14 [gh-pages] Add steps to confirm the cluster is working

Back to archive index

YUKI Hiroshi null+****@clear*****
Sat Jun 28 11:53:56 JST 2014


YUKI Hiroshi	2014-06-28 11:53:56 +0900 (Sat, 28 Jun 2014)

  New Revision: 2a25a14fed2b12832762355ac5341b3e6bf83583
  https://github.com/droonga/droonga.org/commit/2a25a14fed2b12832762355ac5341b3e6bf83583

  Message:
    Add steps to confirm the cluster is working

  Modified files:
    _po/ja/tutorial/1.0.4/groonga/index.po
    ja/tutorial/1.0.4/groonga/index.md
    tutorial/1.0.4/groonga/index.md

  Modified: _po/ja/tutorial/1.0.4/groonga/index.po (+42 -0)
===================================================================
--- _po/ja/tutorial/1.0.4/groonga/index.po    2014-06-28 05:01:39 +0900 (ca29647)
+++ _po/ja/tutorial/1.0.4/groonga/index.po    2014-06-28 11:53:56 +0900 (255cf78)
@@ -288,6 +288,48 @@ msgstr ""
 "能し続けていた場合には、残ったノードがDroongaクラスタとして動作し続けます。そのため、そのような事態が起こっても秘密裏に、機能停止したノードを復旧した"
 "りクラスタに復帰させたりすることができます。"
 
+msgid "Let's make sure that the cluster works, by the `system.status` command:"
+msgstr "クラスタが動作している事を、`system.status` コマンドを使って確認してみましょう:"
+
+msgid ""
+"~~~\n"
+"# curl \"http://192.168.0.10:10041/droonga/system/status\"\n"
+"{\n"
+"  \"nodes\": {\n"
+"    \"192.168.0.10:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    },\n"
+"    \"192.168.0.11:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    }\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
+
+msgid ""
+"The result says that two nodes are working correctly.\n"
+"Because it is a cluster, another endpoint returns same result."
+msgstr ""
+"この結果は、2つのノードが正常に動作している事を示しています。\n"
+"Droongaはクラスタで動作するので、他のエンドポイントも同じ結果を返します。"
+
+msgid ""
+"~~~\n"
+"# curl \"http://192.168.0.11:10041/droonga/system/status\"\n"
+"{\n"
+"  \"nodes\": {\n"
+"    \"192.168.0.10:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    },\n"
+"    \"192.168.0.11:10031/droonga\": {\n"
+"      \"live\": true\n"
+"    }\n"
+"  }\n"
+"}\n"
+"~~~"
+msgstr ""
+
 msgid "To stop services, run commands like following on each Droonga node:"
 msgstr "サービスを停止するには、以下のコマンドを各Droongaノード上で実行します:"
 

  Modified: ja/tutorial/1.0.4/groonga/index.md (+33 -0)
===================================================================
--- ja/tutorial/1.0.4/groonga/index.md    2014-06-28 05:01:39 +0900 (a7e5c33)
+++ ja/tutorial/1.0.4/groonga/index.md    2014-06-28 11:53:56 +0900 (67bc61e)
@@ -142,6 +142,39 @@ GroongaをHTTPサーバとして使う場合は、以下のように `-d` オプ
 
 このコマンドにより、2つのノードはクラスタを形成し、互いの生死を監視するようになります。もしクラスタ内のどれか1つのノードが機能を停止し、他のノードがまだ機能し続けていた場合には、残ったノードがDroongaクラスタとして動作し続けます。そのため、そのような事態が起こっても秘密裏に、機能停止したノードを復旧したりクラスタに復帰させたりすることができます。
 
+クラスタが動作している事を、`system.status` コマンドを使って確認してみましょう:
+
+~~~
+# curl "http://192.168.0.10:10041/droonga/system/status"
+{
+  "nodes": {
+    "192.168.0.10:10031/droonga": {
+      "live": true
+    },
+    "192.168.0.11:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
+この結果は、2つのノードが正常に動作している事を示しています。
+Droongaはクラスタで動作するので、他のエンドポイントも同じ結果を返します。
+
+~~~
+# curl "http://192.168.0.11:10041/droonga/system/status"
+{
+  "nodes": {
+    "192.168.0.10:10031/droonga": {
+      "live": true
+    },
+    "192.168.0.11:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 サービスを停止するには、以下のコマンドを各Droongaノード上で実行します:
 
     # kill $(cat $DROONGA_BASE_DIR/droonga-engine.pid)

  Modified: tutorial/1.0.4/groonga/index.md (+33 -0)
===================================================================
--- tutorial/1.0.4/groonga/index.md    2014-06-28 05:01:39 +0900 (2512992)
+++ tutorial/1.0.4/groonga/index.md    2014-06-28 11:53:56 +0900 (835fe54)
@@ -135,6 +135,39 @@ By the command two nodes construct a cluster and they monitor each other.
 If one of nodes dies and there is any still alive node, survivor(s) will work as the Droonga cluster.
 Then you can recover the dead node and re-join it to the cluster secretly.
 
+Let's make sure that the cluster works, by the `system.status` command:
+
+~~~
+# curl "http://192.168.0.10:10041/droonga/system/status"
+{
+  "nodes": {
+    "192.168.0.10:10031/droonga": {
+      "live": true
+    },
+    "192.168.0.11:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
+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"
+{
+  "nodes": {
+    "192.168.0.10:10031/droonga": {
+      "live": true
+    },
+    "192.168.0.11:10031/droonga": {
+      "live": true
+    }
+  }
+}
+~~~
+
 To stop services, run commands like following on each Droonga node:
 
     # kill $(cat $DROONGA_BASE_DIR/droonga-engine.pid)
-------------- next part --------------
HTML����������������������������...
下载 



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