All Products
Search
Document Center

Microservices Engine:Reset data in ZooKeeper instances

Last Updated:Jan 16, 2024

Microservices Engine (MSE) provides a feature to clear data of all nodes on a ZooKeeper instance at a time. This feature is suitable for scenarios in which a large amount of junk data exists on nodes of a ZooKeeper instance. This feature allows you to reset a ZooKeeper instance to restore it to its initial state. This feature helps you quickly initialize and clear data of a ZooKeeper instance.

Important

This feature allows you to clear only the data in a ZooKeeper instance. Other configurations of the instance are not modified. To ensure data security, you must proceed with caution.

Prerequisites

Procedure

  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 Reset Data.

  6. In the Reset Data dialog box, read the displayed information, enter the last four digits of the instance ID, and then click OK.

    After 5 minutes, the instance data is cleared and the instance is restarted. The ZooKeeper instance restores to the initial state. You can verify the result based on the data displayed on the data management page.

References

After data is reset, you can import the required data. For more information, see Import and export data.