Navigation Menu

Skip to content

Commit

Permalink
Use "status" command to check the current status
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent ca64e7a commit e5bb95e
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 37 deletions.
48 changes: 35 additions & 13 deletions _po/ja/tutorial/1.0.4/add-replica/index.po
Expand Up @@ -205,31 +205,35 @@ msgstr ""
" * 1つのreplicaを含む新しいクラスタ。以下、*「beta」*と仮称します。\n"
" * `192.168.0.12`"

msgid "You can confirm that, via the status file `live-nodes.json` on each node:"
msgstr "この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます:"
msgid "You can confirm that, via the `status` command:"
msgstr "この事は、`status` コマンドの結果を見ると確認できます:"

msgid ""
"~~~\n"
"(on 192.168.0.10, 192.168.0.11)\n"
"# cat ~/droonga/state/live-nodes.json\n"
"(for the cluster alpha)\n"
"# curl \"http://192.168.0.10:10041/droonga/status\"\n"
"{\n"
" \"192.168.0.10:10031/droonga\": {\n"
" \"serfAddress\": \"192.168.100.52:7946\"\n"
" },\n"
" \"192.168.0.11:10031/droonga\": {\n"
" \"serfAddress\": \"192.168.100.50:7946\"\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 ""
"~~~\n"
"(on 192.168.0.12)\n"
"# cat ~/droonga/state/live-nodes.json\n"
"(for the cluster beta)\n"
"# curl \"http://192.168.0.12:10041/droonga/status\"\n"
"{\n"
" \"192.168.0.12:10031/droonga\": {\n"
" \"serfAddress\": \"192.168.100.51:7946\"\n"
" \"nodes\": {\n"
" \"192.168.0.12:10031/droonga\": {\n"
" \"live\": true\n"
" }\n"
" }\n"
"}\n"
"~~~"
Expand Down Expand Up @@ -366,6 +370,24 @@ msgstr ""
" * `192.168.0.11`\n"
" * `192.168.0.12`"

msgid "You can confirm that, via the status file `live-nodes.json` on each node:"
msgstr "この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます:"

msgid ""
"~~~\n"
"(on 192.168.0.10, 192.168.0.11)\n"
"# cat ~/droonga/state/live-nodes.json\n"
"{\n"
" \"192.168.0.10:10031/droonga\": {\n"
" \"serfAddress\": \"192.168.100.52:7946\"\n"
" },\n"
" \"192.168.0.11:10031/droonga\": {\n"
" \"serfAddress\": \"192.168.100.50:7946\"\n"
" }\n"
"}\n"
"~~~"
msgstr ""

msgid ""
"~~~\n"
"(on 192.168.0.12)\n"
Expand Down
28 changes: 16 additions & 12 deletions ja/tutorial/1.0.4/add-replica/index.md
Expand Up @@ -107,27 +107,31 @@ Droongaのノードの集合には、「replica」と「slice」という2つの
* 1つのreplicaを含む新しいクラスタ。以下、*「beta」*と仮称します。
* `192.168.0.12`

この事は、各ノード上にあるステータスファイル `live-nodes.json` を見ると確認できます:
この事は、`status` コマンドの結果を見ると確認できます:

~~~
(on 192.168.0.10, 192.168.0.11)
# cat ~/droonga/state/live-nodes.json
(for the cluster alpha)
# curl "http://192.168.0.10:10041/droonga/status"
{
"192.168.0.10:10031/droonga": {
"serfAddress": "192.168.100.52:7946"
},
"192.168.0.11:10031/droonga": {
"serfAddress": "192.168.100.50:7946"
"nodes": {
"192.168.0.10:10031/droonga": {
"live": true
},
"192.168.0.11:10031/droonga": {
"live": true
}
}
}
~~~

~~~
(on 192.168.0.12)
# cat ~/droonga/state/live-nodes.json
(for the cluster beta)
# curl "http://192.168.0.12:10041/droonga/status"
{
"192.168.0.12:10031/droonga": {
"serfAddress": "192.168.100.51:7946"
"nodes": {
"192.168.0.12:10031/droonga": {
"live": true
}
}
}
~~~
Expand Down
28 changes: 16 additions & 12 deletions tutorial/1.0.4/add-replica/index.md
Expand Up @@ -101,27 +101,31 @@ Then there are two separate Droonga clusters on this time.
Let's give a name *"beta"* to it, for now.
* `192.168.0.12`

You can confirm that, via the status file `live-nodes.json` on each node:
You can confirm that, via the `status` command:

~~~
(on 192.168.0.10, 192.168.0.11)
# cat ~/droonga/state/live-nodes.json
(for the cluster alpha)
# curl "http://192.168.0.10:10041/droonga/status"
{
"192.168.0.10:10031/droonga": {
"serfAddress": "192.168.100.52:7946"
},
"192.168.0.11:10031/droonga": {
"serfAddress": "192.168.100.50:7946"
"nodes": {
"192.168.0.10:10031/droonga": {
"live": true
},
"192.168.0.11:10031/droonga": {
"live": true
}
}
}
~~~

~~~
(on 192.168.0.12)
# cat ~/droonga/state/live-nodes.json
(for the cluster beta)
# curl "http://192.168.0.12:10041/droonga/status"
{
"192.168.0.12:10031/droonga": {
"serfAddress": "192.168.100.51:7946"
"nodes": {
"192.168.0.12:10031/droonga": {
"live": true
}
}
}
~~~
Expand Down

0 comments on commit e5bb95e

Please sign in to comment.