The throttling environment is the core of canary releases. You must perform throttling for multiple applications in a throttling environment. This topic describes how to create a throttling environment.
- Create a group.
- If you use a Resource Access Management (RAM) user to perform end-to-end throttling, permissions are granted to the RAM user so that the RAM user can view instances, applications, and services, and manage applications and services. For more information, see Replace EDAS-defined permissions with RAM permission policies.
Create a throttling environment
To configure throttling rules for High-speed Service Framework (HSF) applications, you must use EDAS Container 3.5.3 or later.
- Log on to the EDAS console.
- In the left-side navigation pane, choose Service Query, click End-to End Traffic Adjustment.. In the left-side navigation tree of
- On the End-to End Traffic Adjustment page, click + Start to Create Canary Environment.
- In the Basic Information step of the Canary Environment wizard, configure Namespace, Canary Environment Name, Canary Identifier, and Environment Description. Then, click Next.
- In the Set Inbound Traffic Rule step, select an inbound application and configure throttling rules. Then, click Next.
The following table describes the parameters for throttling rules.
Parameter Description Entrance Application Select an inbound application for the throttling environment from the drop-down list based on your business requirements. Protocol Type Select the protocol type based on your business requirements. Valid values: HTTP and HSF. Path Enter the path in the HTTP requests for a service. This parameter is available only when you set the Protocol Type parameter to HTTP. Service Select a service in the inbound application. This parameter is available only when you set the Protocol Type parameter to HSF. Method Select a method in the inbound application. This parameter is available only when you set the Protocol Type parameter to HSF. Conditional Mode If multiple rules are configured, configure the conditions for these rules to take effect. Valid values: Meet the Following Conditions and Meet Any of the Following Conditions. Conditions Parameter Type Select the type of the parameter. Valid values: Cookie, Header, and Parameter. Parameter Enter a parameter. The parameter can be a maximum of 64 characters in length. For more information about how to configure this parameter, see Throttling rule parameters. Conditions Select a condition. Valid values: Mod 100 and White List. Value Enter a value for the mod operation or list.Note
- To configure multiple rules, click Add Rule Condition.
- To create multiple throttling rules for inbound traffic, click Create Inbound Traffic Rule.
- In the Select Application step, select specific applications in the Select Application section based on your business requirements, click the > icon to add the applications to the Selected Applications section, select the application instance group, and then click Next.Note
- Some applications in the Select Application section cannot be selected and have the icon next to them, which means that these applications are in the default group. In this case, the applications cannot be added to the throttling environment.
- Some application instance groups in the Selected Applications section also have the icon next to them, which means that this group has no instances. In this case, you must add at least one instance to the group. For more information, see Add an instance.
- In the Created step, confirm the settings of the throttling environment and click Submit.
Enable the throttling environment
After the throttling environment is created, you can turn on Entrance Flow to apply throttling rules to the inbound application that runs in the throttling environment. To enable the throttling environment, perform the following steps:
- Open the End-to End Traffic Adjustment page.
- Select Region and Namespace where the throttling environment resides.
- Find the throttling environment that you created and turn on Entrance Flow.
Verify the throttling environment
After you configure and enable the throttling environment, you can monitor the canary traffic to verify whether the environment meets your business requirements. For more information, see Monitor canary traffic.