When you use a Microservices Engine (MSE) ZooKeeper instance, you may encounter znode changes. After a znode changes, troubleshooting becomes difficult if the related client does not receive the change event pushed from the instance. In this case, you can use the ZooKeeper data tracking feature to improve the troubleshooting efficiency. This topic describes how to view data tracks of an MSE ZooKeeper instance.
Prerequisites
A ZooKeeper engine in a version of V3.8.0.2 or later is created. For more information about how to create a ZooKeeper engine, see Create a ZooKeeper engine. For more information about how to upgrade the engine version, see Upgrade a ZooKeeper version.
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 Data Management > Data Tracks.
Select a query dimension and enter the path of the znode or client session ID in the field on the right. Select a time range based on your business requirements, and click Query to view data push records.
If you select Path from the query dimension drop-down list, the znode change records, the machine to which the records are pushed, and push status are queried. In the Change Event section on the left, click a configuration release time point to navigate to the details of the change event in the Changes and Push Events section. Then, you can view the change event details.
For a change event, the event type of the change is displayed. For a push event, the push time and the session ID of the client to which the event is pushed are displayed.
If you select Session ID from the query dimension drop-down list, the session information, change records, and push records are displayed.
Parameter
Description
Changed At
The time when the znode changed.
SessionId
The session ID of the client.
Event
The operation type of the znode.
Path
The path of the znode.
Details
Click the
icon to view the details of the change event. Click the
icon to switch to the dimension query entry to query the push events during the specified period of time.