YUKI Hiroshi
null+****@clear*****
Sat Jun 28 12:24:28 JST 2014
YUKI Hiroshi 2014-06-28 12:24:28 +0900 (Sat, 28 Jun 2014) New Revision: b6fc8c0893852b38c2174b00df1eb981f738b27a https://github.com/droonga/droonga.org/commit/b6fc8c0893852b38c2174b00df1eb981f738b27a Message: Add steps to confirm cluster is changed Modified files: _po/ja/tutorial/1.0.4/dump-restore/index.po ja/tutorial/1.0.4/dump-restore/index.md tutorial/1.0.4/dump-restore/index.md Modified: _po/ja/tutorial/1.0.4/dump-restore/index.po (+30 -0) =================================================================== --- _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-06-28 12:15:44 +0900 (8d53ef8) +++ _po/ja/tutorial/1.0.4/dump-restore/index.po 2014-06-28 12:24:28 +0900 (b3007ab) @@ -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\"]],[" @@ -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],[]]]]" @@ -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 "## まとめ" Modified: ja/tutorial/1.0.4/dump-restore/index.md (+29 -0) =================================================================== --- ja/tutorial/1.0.4/dump-restore/index.md 2014-06-28 12:15:44 +0900 (d366d6e) +++ ja/tutorial/1.0.4/dump-restore/index.md 2014-06-28 12:24:28 +0900 (b7d11cb) @@ -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],[]]]] @@ -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][]クラスタのバックアップとデータの復元の方法を実践しました。 Modified: tutorial/1.0.4/dump-restore/index.md (+29 -0) =================================================================== --- tutorial/1.0.4/dump-restore/index.md 2014-06-28 12:15:44 +0900 (3ec76e1) +++ tutorial/1.0.4/dump-restore/index.md 2014-06-28 12:24:28 +0900 (9e49f4e) @@ -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],[]]]] @@ -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. -------------- next part -------------- HTML����������������������������... 下载