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.
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
MSE is activated. For more information, see Activate MSE.
A ZooKeeper engine is created. For more information, see Create a ZooKeeper engine.
Procedure
Log on to the MSE console and select a region in the top navigation bar.
In the left-side navigation pane, choose .
On the Instances page, click the name of the instance.
In the left-side navigation pane, choose .
On the Znodes page, click Reset Data.
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.