To update Spring Cloud or Dubbo microservice-oriented applications that are deployed
in an Elastic Compute Service (ECS) cluster, you can perform a canary release.
Limits
- High-Speed Service Framework (HSF) applications: Canary release is not supported.
- Dubbo applications: You can implement canary releases of Dubbo applications without
limits.
- Spring Cloud applications: If you use Deployment.Metadata.Name or Deployment.Metadata.Uid
to configure some features of an application, do not implement a canary release for
the application. Otherwise, the native features of the application may be abnormal
after the canary release.
Procedure
- Log on to the EDAS console.
- In the left-side navigation pane, click Applications.
- On the Applications page, select a region, select a namespace from the Namespaces drop-down list, and then click the application name.
- On the application details page, click Deploy Application in the upper-right corner.
- On the Select Deployment Mode page, click Canary Release (Phased) in the upper-right corner of the section.
- On the Canary Release page, upload the deployment package of the new application version, set the canary
release policy and rules, and then click Confirm.
- Upload the deployment package of the new application version.
- In the Release Strategy section, configure release policy parameters.
The Publish Policy Configuration section on the right shows the canary release process based on the configuration.

Parameters
Parameter |
Description |
Canary Groups |
The instance groups that are used for the canary release. |
Batches per Group After Canary Release |
The number of batches. The instances in other groups are released based on the specified
number of batches after the canary groups are released.
- If all groups are selected, the instances in each group are released based on the
specified number of batches. If the number of instances in a group is less than the
specified number of batches, the instances in the group are released based on the
actual number of instances.
- If a specific group is selected, the instances in the group are released based on
the specified number of batches.
|
Batch Type for Scale-out After Canary Release |
If you set Batches per Group After Canary Release to a value of at least 2, you must specify this parameter. Valid values: Automatic and Manual.
|
Java Environment |
The runtime environment of the application. Specify this parameter based on your business
requirements.
|
- Set canary release rules.
Two canary release rules are provided: Canary Release by Content and Canary Release by Ratio.
- Canary Release by Content: Click Create New Entrance Flow Rules and set a new rule for inbound traffic.
Note You can create multiple inbound traffic rules.

Parameters
Parameter |
Description |
Protocol Type |
Valid values: Spring Cloud and Dubbo. Specify this parameter based on your business requirements.
- Spring Cloud: You must specify the Path parameter.
- Dubbo: You must specify the Service and Method parameters.
|
Conditional Mode |
Valid values: Meet All Following Conditions and Meet Any of Following Conditions.
|
Conditions |
The conditions for Spring Cloud and Dubbo are different.
- Spring Cloud: Valid options include Cookie, Header, and Parameter. Specify this parameter based on your business requirements.
- Dubbo: Valid options include Parameters and Expression for Getting Parameter Values. Specify this parameter based on your business requirements.
|
- Canary Release by Ratio: set the Traffic Ratio parameter. Traffic is forwarded to the current canary group based on the specified
ratio.
After a canary release is started, deploy the new application version to the specified
canary group. The following message appears on the Basic Information page: A change process is being executed for this application. Status: Executing. Click View Details. On the Change Details page, view the deployment progress and status.
- Check whether the traffic is distributed to the canary group as expected. For more
information, see Monitor canary traffic.
- After the traffic verification is completed, click Start the Next Batch on the Change Details page.
If any issues are found during the verification process, you can click Stop Change in the upper-right corner of the Change Details page. After the change is terminated, the following message appears on the Basic Information page: The application is in the canary release state and this change has been stopped. Roll
back the application before you perform other operations.
Verify the result
After a canary release is completed, check whether the new application version is
displayed for the Deployment Package parameter on the Basic Information page. On the Instance Deployment Information page, check whether the value of Status is Running.