Push tracking

Updated at:

The push tracking feature provides visibility into the delivery path of Nacos services and configurations from the server to clients. You can use this feature to query service pushes from the registry and track configuration changes and pushes from the configuration center. This helps you observe the delivery status of Nacos push operations and improves troubleshooting efficiency. This topic describes how to use the push tracking feature to query push data.

Prerequisites

  • You have a Nacos Professional Edition instance. For more information, see Create a Nacos engine.

  • Nacos client 2.0.0 or later is required for registry push tracking.

Push tracking for the registry

Push tracking for the registry shows detailed records of service push events.

Features

When you use Nacos, you might encounter issues with service pushes from the registry, such as a client not receiving service updates or anomalies in inter-service calls. In these scenarios, you can use the push tracking feature to verify that the registry is correctly pushing service information to clients.

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 navigation pane on the left, choose Service Management > Push track.

  5. In the upper-left corner of the page, click the Query Dimension: Service drop-down list and select Query dimension: IP or Query Dimension: IP. Enter the service name in the Service Name field and the group name in the Group Name field. In the upper-right corner, click Half an hour, 1 hour, Nearly 1 day, or specify a Custom time range. Then, click Query.

Note
  • Select Query dimension: IP to query all push information received by a specific client.

  • Select Query Dimension: Service to query which machines a service was pushed to and the push status for each.

The following table describes the parameters.

Parameter

Description

Push Time

The time when the push event occurred.

Push Client IP Address

The IP address of the client that received the push.

Push service name

The name of the service that was pushed.

Push Service Group

The name of the group to which the pushed service belongs.

Number of Instances

The number of instance IP addresses included in the service push.

Node name

The name of the Nacos node that sent the push.

Push tracking for the configuration center

Push tracking for the configuration center shows detailed records of configuration change events.

Features

When you use Nacos, you might encounter issues with configuration change publications, such as a publication failure or a configuration that fails to take effect on a specific machine. In these cases, you can view the push tracking to check the configuration change and push events.

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 navigation pane on the left, choose Configuration Management > Push track. From the Query Dimension drop-down list, select Configuration. Enter the configuration's Data ID in the Data ID field and its group in the Group field. Then, click Query搜索图标.

    Note
    • Select Configuration to query which machines a configuration was pushed to and the push status for each.

    • Select Query dimension: IP to query all configurations that the specified client is listening for.

    • Select Configuration. The following table describes the parameters.

      Parameter

      Description

      Change Event

      Lists the configuration change events within the specified time period.

      Note

      Clicking the configuration release time on the Change Event tab on the left automatically navigates you to the Changes and Push Events tab, where you can view the MD5 value of the content for this change event.

      Changes and Push Events

      Lists the configuration change and push events within the specified time period. For change events, the MD5 hash of the content is displayed. Push events show the push time and the IP address of the recipient client.

    • Select Query dimension: IP. The following table describes the parameters.

      Parameter

      Description

      Changed At

      The time when the configuration change occurred.

      Change Event

      The type of the configuration change event.

      Data ID

      The Data ID of the configuration associated with the change event.

      Group

      The group to which the configuration associated with the change event belongs.

      Details

      • Click the information icon信息 to view the details of the change event.

      • Click the Go to icon Go to in the Details column to open the configuration query page, where you can query the push events for the current configuration at that point in time.