All Products
Search
Document Center

Microservices Engine:Import and export data

Last Updated:Feb 06, 2024

Microservices Engine (MSE) ZooKeeper instances allow you to import data by using snapshot files. MSE ZooKeeper instances also allow you to export snapshot files and transaction logs. This topic describes how to use a ZooKeeper instance to import and export data.

Prerequisites

A ZooKeeper engine is created. For more information, see Create a ZooKeeper engine.

Limits

When you use the data import and export features, take note of the following limits:

  • Data import: The version of the MSE ZooKeeper instance must be 3.8.0.1 or later.

  • Data export: The MSE ZooKeeper instance must be of the Professional Edition.

Import data

Important

Existing data in the instance is cleared after you import data into the instance. Proceed with caution.

  1. Log on to the MSE console and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Microservices Registry > Instances.

  3. On the Instances page, click the name of the instance.

  4. In the left-side navigation pane, choose Data Management > Znodes.

  5. On the Znodes page, click Import Data.

  6. In the Import Data dialog box, click Upload Local File to upload the snapshot file that you want to import, and click OK.

    For capacity security considerations, the data import feature has upper limits on the size of the snapshot file to be imported. The following table describes the upper limits.

    Maximum size of the snapshot file to be imported

    Recommended minimum specifications

    Recommended number of disaster recovery nodes

    200 MB

    1 vCPU and 2 GiB of memory

    At least 3 nodes in production environments

    400 MB

    2 vCPUs and 4 GiB of memory

    800 MB

    4 vCPUs and 8 GiB of memory

    1600 MB

    8 vCPUs and 16 GiB of memory

    3200 MB

    16 vCPUs and 32 GiB of memory

Export data

  1. Log on to the MSE console and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Microservices Registry > Instances.

  3. On the Instances page, click the name of the instance.

  4. In the left-side navigation pane, choose Data Management > Znodes.

  5. On the Znodes page, click Export Data.

  6. In the Data Export dialog box, select the type of the data file that you want to export, and click Export.

    Note

    The export process takes about 2 to 5 minutes. After the export is complete, you can obtain the file in the Download List section.

    Parameter

    Description

    Data Type

    The type of the data file that you want to export.

    • Snapshot: You can export only the latest snapshot file.

    • Transaction Log: You can export only the previous three transaction log files.

    Download List

    After you click Export, the export task is displayed in the Download List section.

    • File Name: the name of the file in the export task.

    • File Type: the type of the exported data, which can be Snapshot or Transaction Log.

    • Exported At: the time when the export task starts.

    • File Size: the total size of the exported files.

    • Status: the status of the export task.

      • Downloadable: The export task is complete. You can click Download in the Actions column to download the exported file.

      • Export Failed: The export task failed. You can export the file again based on the displayed error message and instructions.

      • Expired: The exported file is retained for seven days. If the file expires, you need to export the file again.