Configure and Validate Cross-Region Cluster Weight Distribution
This document explains how to achieve cross-cluster weight distribution for applications based on a multi-cluster service mesh using the Bookinfo application as an example.
TOC
Steps
-
In the left navigation bar, click Service Mesh > Mesh.
-
Click the name of the service mesh to be configured.
-
On the Mesh Policies tab, click Create Policy > Regional Load Balancing on the right side of cluster
c1. -
Select Weight Distribution as the Policy Type and configure the related parameters as described below.
Example: Set the weight of the region where cluster
c1is located to 80% and the weight of the region where clusterc2is located to 20%. -
Click Create.
Validation Method
Refer to the Access Verification method for the productpage service to continuously access the productpage service based on the routing configuration (External Access Address) created by the gateway deployed in cluster c1.
You can go to the Monitoring page of the Service Mesh platform and compare the monitoring data of the productpage service in each cluster on the Cluster Traffic Comparison panel. If the traffic monitoring data corresponds to the weight proportions, it indicates that cross-cluster weight distribution is effective.