Navigation Menu

Skip to content

Commit

Permalink
Add steps to confirm cluster is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent 6fd991b commit b6fc8c0
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
30 changes: 30 additions & 0 deletions _po/ja/tutorial/1.0.4/dump-restore/index.po
Expand Up @@ -414,6 +414,14 @@ msgstr ""
"きました。確かめてみましょう:"

msgid ""
" # 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"
" }\n"
" }\n"
" # curl \"http://192.168.0.10:10041/d/select?table=Store&output_columns=name"
"&limit=10\"\n"
" [[0,1401363556.0294158,0.0000762939453125],[[[40],[[\"name\",\"ShortText\"]],["
Expand All @@ -423,6 +431,14 @@ msgid ""
"w York NY (W)\"],[\"45th & Broadway - New York NY (W)\"],[\"Marriott Marquis - L"
"obby - New York NY\"],[\"Second @ 81st - New York NY (W)\"],[\"52nd & Seventh - N"
"ew York NY (W)\"]]]]\n"
" # curl \"http://192.168.0.11:10041/droonga/system/status\"\n"
" {\n"
" \"nodes\": {\n"
" \"192.168.0.11:10031/droonga\": {\n"
" \"live\": true\n"
" }\n"
" }\n"
" }\n"
" # curl \"http://192.168.0.11:10041/d/select?table=Store&output_columns=name"
"&limit=10\"\n"
" [[0,1401363465.610241,0],[[[null],[]]]]"
Expand Down Expand Up @@ -514,6 +530,20 @@ msgstr ""
msgid "After that there is just one cluster - yes, it's the initial state."
msgstr "これで、1つだけクラスタがある状態になりました。最初の状態に戻ったという事になります。"

msgid ""
" # 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"
" }"
msgstr ""

msgid "## Conclusion"
msgstr "## まとめ"

Expand Down
29 changes: 29 additions & 0 deletions ja/tutorial/1.0.4/dump-restore/index.md
Expand Up @@ -258,8 +258,25 @@ Elapsed time: 0.008678467

これで、ノード `192.168.0.10` を含む複製元クラスタと、ノード `192.168.0.11` を含む複製先の空のクラスタの、2つのクラスタができました。確かめてみましょう:


# curl "http://192.168.0.10:10041/droonga/system/status"
{
"nodes": {
"192.168.0.10:10031/droonga": {
"live": true
}
}
}
# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10"
[[0,1401363556.0294158,0.0000762939453125],[[[40],[["name","ShortText"]],["1st Avenue & 75th St. - New York NY (W)"],["76th & Second - New York NY (W)"],["Herald Square- Macy's - New York NY"],["Macy's 5th Floor - Herald Square - New York NY (W)"],["80th & York - New York NY (W)"],["Columbus @ 67th - New York NY (W)"],["45th & Broadway - New York NY (W)"],["Marriott Marquis - Lobby - New York NY"],["Second @ 81st - New York NY (W)"],["52nd & Seventh - New York NY (W)"]]]]
# curl "http://192.168.0.11:10041/droonga/system/status"
{
"nodes": {
"192.168.0.11:10031/droonga": {
"live": true
}
}
}
# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10"
[[0,1401363465.610241,0],[[[null],[]]]]

Expand Down Expand Up @@ -317,6 +334,18 @@ Elapsed time: 0.008678467

これで、1つだけクラスタがある状態になりました。最初の状態に戻ったという事になります。

# 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
}
}
}

## まとめ

このチュートリアルでは、[Droonga][]クラスタのバックアップとデータの復元の方法を実践しました。
Expand Down
29 changes: 29 additions & 0 deletions tutorial/1.0.4/dump-restore/index.md
Expand Up @@ -253,8 +253,25 @@ Construct two clusters by `droonga-engine-catalog-modify` and make one cluster e

After that there are two clusters: one contains `192.168.0.10` with data, another contains `192.168.0.11` with no data. Confirm it:


# curl "http://192.168.0.10:10041/droonga/system/status"
{
"nodes": {
"192.168.0.10:10031/droonga": {
"live": true
}
}
}
# curl "http://192.168.0.10:10041/d/select?table=Store&output_columns=name&limit=10"
[[0,1401363556.0294158,0.0000762939453125],[[[40],[["name","ShortText"]],["1st Avenue & 75th St. - New York NY (W)"],["76th & Second - New York NY (W)"],["Herald Square- Macy's - New York NY"],["Macy's 5th Floor - Herald Square - New York NY (W)"],["80th & York - New York NY (W)"],["Columbus @ 67th - New York NY (W)"],["45th & Broadway - New York NY (W)"],["Marriott Marquis - Lobby - New York NY"],["Second @ 81st - New York NY (W)"],["52nd & Seventh - New York NY (W)"]]]]
# curl "http://192.168.0.11:10041/droonga/system/status"
{
"nodes": {
"192.168.0.11:10031/droonga": {
"live": true
}
}
}
# curl "http://192.168.0.11:10041/d/select?table=Store&output_columns=name&limit=10"
[[0,1401363465.610241,0],[[[null],[]]]]

Expand Down Expand Up @@ -312,6 +329,18 @@ Run following command lines to unite these two clusters:

After that there is just one cluster - yes, it's the initial state.

# 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
}
}
}

## Conclusion

In this tutorial, you did backup a [Droonga][] cluster and restore the data.
Expand Down

0 comments on commit b6fc8c0

Please sign in to comment.