All Products
Search
Document Center

Alibaba Cloud Service Mesh:Manage destination rules

Last Updated:Dec 08, 2023

Destination rules are critical resources of Service Mesh (ASM) instances for traffic routing. Destination rules define policies that apply to traffic intended for a service after routing has occurred. Destination rules specify configurations for load balancing, connection pool size from the sidecar, and outlier detection settings to detect and remove unhealthy hosts from the load balancing pool. This topic describes how to create, modify, and delete a destination rule.

Create a destination rule

  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 Traffic Management Center > DestinationRule.

    For more information about configuration examples and descriptions, see Destination Rule. You can use the following methods to create a destination rule:

    • Method 1: Click Create. On the Create page, configure the parameters, and then click Create.

    • Method 2: Click Create from YAML. On the Create page, select a namespace from the Namespace drop-down list and a template from the Template drop-down list. In the YAML code editor, modify the configurations of the destination rule as needed and click Create.

Related operations

After a destination rule is created, you can perform the following operations on the destination rule in the Actions column on the DestinationRule page:

  • View or modify the YAML file of the destination rule: Find the desired destination rule and click YAML in the Actions column. In the Edit dialog box, modify the configurations as needed and click OK.

  • Modify the version of the destination rule: Find the desired destination rule and click Version in the Actions column. In the Version dialog box, modify the configurations as needed and click Rollback.

  • Delete the destination rule: Find the desired destination rule and click Delete in the Actions column. In the Submit message, click OK.

    Important

    After you delete a destination rule, policies such as load balancing, circuit breaking, and throttling may be affected, and unexpected issues may occur. Exercise caution when you delete a destination rule.