All Products
Search
Document Center

Alibaba Cloud Service Mesh:Observe zone-aware routing by using Mesh Topology

Last Updated:Aug 24, 2026

Alibaba Cloud Service Mesh (ASM) lets you view your application topology. This topic uses the Bookinfo application, accessed through an ingress gateway, to demonstrate how to observe zone-aware routing with Service Mesh.

Prerequisites

Step 1: Deploy the sample application

  1. Download the Helm chart for the sample application.

  2. Extract the package to the asm-az-routing directory and specify the zones in the values.yaml file.

    The following is a sample configuration:

    zone1: cn-hangzhou-j
    zone2: cn-hangzhou-k
  3. Run the following command to deploy the sample application.

    helm install --namespace azdemo azdemo ./
  4. After the pods are running, run the following command to access the service through the ingress gateway.

    while true; do
      curl -I http://{IP address of the ingress gateway}/productpage ;
      echo;sleep 1;
    done

Step 2: Configure Mesh Topology

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose Observability Management Center > Mesh Topology.

  3. On the Mesh Topology page, click Copy token and open in new window.

  4. On the Log in to Mesh Topology page, paste the token into the Login Token text box and click Log In.

  5. Select the target namespace. From the Display drop-down list, select Traffic Distribution, Traffic Rate, and Traffic Animation, and clear the Service Nodes checkbox.

    The following figure shows an example.网格拓扑示例一

Step 3: Verify automatic route failover

  1. Scale down the reviews-v1 deployment in the first zone to 0 pods to simulate a service failure.

    1. Log on to the ACK console. In the left navigation pane, click Clusters.

    2. On the Clusters page, click the name of your cluster. In the left navigation pane, click Workloads > Deployments.

    3. In the Actions column of the target application, click Scale, set Desired Pod Count to 0, and then click OK.

  2. Return to the Mesh Topology page as described in Step 2: Configure Mesh Topology and view the topology.

    The following figure shows an example. 网格拓扑示例二The topology shows that traffic from productpage-v1 is now routed to reviews-v2. This indicates that when the reviews service in the local zone is unavailable, traffic automatically fails over to the other zone.

Step 4: Verify zone-aware routing

  1. Scale up the reviews-v1 deployment in the first zone to 1 pod to restore the service.

    1. Log on to the ACK console. In the left navigation pane, click Clusters.

    2. On the Clusters page, click the name of your cluster. In the left navigation pane, click Workloads > Deployments.

    3. In the Actions column of the target application, click Scale, set Desired Pod Count to 1, and then click OK.

  2. Return to the Mesh Topology page as described in Step 2: Configure Mesh Topology and view the topology.

    The following figure shows an example. 网格拓扑示例三The topology shows that traffic from productpage-v1 is routed back to reviews-v1 in the local zone. This confirms that zone-aware routing is working correctly.