Grayscale Release

Creating a Grayscale Release Task

  1. Log in to the ASM console and click image1 in the asmtest mesh.

  2. Set Task Name to test and select servicetest created in Creating a Workload and a Service for Service. (Workload is automatically set to deptest.) Configure other basic information and grayscale version information and click Release.

    Note

    If you cannot select servicetest, check whether the service is normal. If the service is abnormal, fix the issues and try again.

  3. Click Configure Traffic Policy, set the policy type to Based on traffic ratio, and set the traffic ratio of v2 to 80%.

  4. Click Deliver Policy.

    It takes several seconds for the traffic policy to take effect. You can view the running of the grayscale version on the View Status page.

Switching All Traffic to the Grayscale Version

Check whether the number of resources in v2 matches that in v1. After confirming that v2 is able to serve all the traffic of v1, switch all the traffic from v1 to v2.

  1. On the Grayscale Release page, click test and then click Monitor and Manage Traffic.

  2. Click Take Over All Traffic next to v2.

  3. Click OK. A message is displayed in the upper right corner, indicating that the traffic is taken over successfully.

Bringing the Original Version Offline

After v2 takes over all the traffic from v1, bring v1 offline to release its resources.

  1. On the Grayscale Release page, click test and then click Monitor and Manage Traffic.

  2. On the displayed page, when the traffic percentage of v2 is 100%, v2 has taken over all traffic of v1. Click Terminate Task.

  3. Click OK.

    The v1 version is brought offline and the test grayscale task is deleted.