When stale or junk data accumulates across znodes in a ZooKeeper instance, deleting nodes individually becomes impractical. Microservices Engine (MSE) provides a one-click reset that clears all znode data and restores the instance to its initial state.
Resetting permanently deletes all znode data in the instance. Instance configurations are not affected. The instance restarts during the reset and is unavailable for approximately 5 minutes. Export any data you need before you proceed.
Choose a cleanup approach
Select the approach that matches the scope of your cleanup:
| Approach | When to use | Impact |
|---|---|---|
| Delete individual znodes | Only specific paths contain unwanted data | Minimal; no restart required |
| Reset data (this topic) | Most or all znode data is stale and a fresh start is needed | All znode data is deleted; instance restarts (~5 min) |
| Import and export data | Restore specific data after a reset | No data loss if exported beforehand |
Prerequisites
Before you begin, make sure that you have:
(Recommended) A recent data export so you can restore specific znodes after the reset
Reset all znode data
Log on to the MSE console and select a region in the top navigation bar.
In the left-side navigation pane, choose Microservices Registry > Instances.
On the Instances page, click the name of the target instance.
In the left-side navigation pane, choose Data Management > Znodes.
On the Znodes page, click Reset Data.
In the Reset Data dialog box, review the warning, enter the last four digits of the instance ID to confirm, and then click OK. The instance restarts and is unavailable during the reset. After approximately 5 minutes, all znode data is cleared and the instance returns to its initial state.
Verify that the reset succeeded
After the instance status returns to Running, go to Data Management > Znodes and confirm that the znode tree shows the initial state.
Related operations
To restore specific data, import it from a previously exported file. See Import and export data.
To reduce future data accumulation, periodically review and delete unused znodes on the Znodes page.