Skip to main content

MongoDBのバックアップ

MongoDBの埋め込みバージョンを使用して、Alteryx Serverの展開からデータのバックアップと復元を行うためのユーティリティがいくつか用意されています。このバックアップ機能を使用して、システム障害やデータの破損または消失からの回復ができます。また、復元オプションを使用して、過去のデータにロールバックすることもできます。

AlteryxService実行ファイル AlteryxService.exe から入手できるコマンドラインユーティリティを使用して、データのバックアップと復元を行います。データベースバックアッププロセスでは、Serverをシャットダウンする(スケジューリングとServer機能を数分間無効にする)必要があるため、オフピーク時にバックアップを実行してください。

MongoDB バックアップの作成

  1. AlteryxServiceを停止します。複数のマシンを、Server UIノード、ワーカー、コントローラーの順にシャットダウンします。

  2. コマンドラインから、Alteryx Serverインストールフォルダー(例: D:\Program Files\Alteryx\bin )に移動します。

  3. 次のコマンドを実行して、指定したフォルダー(空のフォルダーであることが必要)にデータベースのバックアップを保存します。

    alteryxservice emongodump=path_to_backup_location

    \Program Files\Alteryx\bin\AlteryxService.exe emongodump=c:\temp\dumpOutput

  4. AlteryxService を再起動します。複数のマシンを、さっきとは逆の手順で、コントローラー、ワーカー、Server UIノードの順に再起動します。

MongoDBバックアップからの復元

  1. AlteryxServiceを停止します。

  2. コマンドラインから、Alteryx Serverインストールフォルダー(例: D:\Program Files\Alteryx\bin )に移動します。

  3. 次のコマンドを実行して、指定したフォルダー(空のフォルダーであることが必要)にデータベースのバックアップを保存します。

    \Program Files\Alteryx\bin\AlteryxService.exe emongorestore=c:\temp\dumpOutput,c:\temp\restoreInput,10

    The final parameter, ,10, ensures lower memory usage by Mongo during the restore. This reduces the chance of out-of-memory errors but might increase the time to restore. Leaving off the ,10 might lead to faster restores. In either case, review mongoRestore.log as described below to ensure the restore was successful.

    注記

    MongoDBを別の名前の新しいフォルダーに復元する場合は、[ Alteryxシステム設定 ] > [コントローラー] > [ 永続性 ] で [ データフォルダー ] を更新して、AlteryxServiceが新しく復元されたMongoDBフォルダーで起動できるようにする必要があります。コントローラーの設定の詳細については、 コントローラー のヘルプページを参照してください。

  4. AlteryxService を再起動します。

    注意

    This is a necessary step as a restore failure will not be reported in the previous step and can lead to missing data on your Server. To do so, review the mongoRestore.log file in the MongoDB folder where the data was restored. Open mongoRestore.log and follow these steps:

    • Confirm that it reports #### document(s) restored successfully, 0 document(s) failed to restore on the last line.

    • Search for error, critical, fatal, and failed. If you are looking for failed, make sure the result is different from the sentence in the previous point, which contains 0 document(s) failed.

    If the recovery has failed, or if you find any results when searching the key words listed above, please contact Support with all the information you have gathered.

    Do not proceed if the MongoDB restore failed.

  5. AlteryxService を再起動します。

MongoDB バックアップの使用

  1. [ システム設定 ].を開きます。

  2. [ Controller ] (コントローラー) > [ Persistence ] (永続性) の順に進みます。

  3. [Data Folder] (データフォルダー) フィールドで、バックアップするフォルダーを参照します。

  4. [ Next ] (次へ) を選択して、[システム設定] ウィンドウに戻ったら、サービスを再起動します。サービスが起動すると、復元されたフォルダーから実行されます。