To view information about application upgrade methods, see "Application upgrade." The following table lists the upgrade methods supported by different deployment modes.
Table-1 Application upgrade method compatibility
Application domain name configured |
Resources used in deployment |
Supported upgrade methods |
Yes |
Multiple VM instances |
Rolling upgrade, grayscale upgrade, replacement upgrade |
Container cluster or MCP cluster |
Rolling upgrade, grayscale upgrade |
|
One VM instance |
Replacement upgrade, grayscale upgrade |
|
No |
Multiple VM instances |
Rolling upgrade, replacement upgrade |
Container cluster or MCP cluster |
Rolling upgrade |
|
One VM instance |
Replacement upgrade |
Stateful applications do not support grayscale upgrade. If an exception occurs because of parameter errors in stateful application upgrade, the exception cannot be removed even if you correct the errors and perform an upgrade or rollback again. You must restart the application to remove the exception. |
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Click Upgrade.
Configure the upgrade parameters, and then click OK. When upgrading a container application, you can modify advanced settings of the application (see ).
Table-2 Configuring upgrade parameters
Parameter |
Description |
Upgrade Policy |
Select an upgrade policy according to Table-1. |
Software Package Version |
Select a software package version used for upgrading the application. For an application deployed through Helm or YAML, you can select an image from the image repository. |
Current Version |
Current version of the application, which cannot be modified. |
Target App Version |
Select the target application version, a string of 1 to 36 characters. It can contain uppercase letters, lowercase letters, numbers, and special characters, and must start and end with a letter or number. |
JVM Parameter |
This parameter is supported only for host applications and is optional. |
Environment Variables |
Configure environment variables for containers.
|
Nginx Version |
Specify a Nginx version. Only version 1.20 is supported in the current software version. This parameter appears only when you deploy a front-end resources package. |
Enable HTTPS |
Choose to whether to enable HTTPS. If you enable HTTPS, you must upload a pair of public key certificate and private key certificate. |
Public Key Certificate/Private Key Certificate |
Upload a public key certificate or private key certificate: 1. Click upload. 2. Drag a certificate to the window or click click to upload to upload a certificate. |
Nginx Configuration |
Upload a configuration file: 1. Click upload. 2. Drag a configuration file to the window or click click to upload to upload a configuration file. If the Nginx configuration is not updated, the application uses the old Nginx configuration after the upgrade. |
Weight |
Set the weight of the new version, which is the traffic assignment ratio in percentage. For example, if you upgrade an application from v2 to v3 and you set the weight of the new version to 3, the system assigns 3% of the traffic to the new version. |
Batch |
Applications deployed on cloud host instances and use the rolling upgrade method supports upgrades in batches. For example, if this parameter is set to 5 for an application that is upgraded on 100 cloud host instances, the application is upgraded five times, 20 cloud host instances each time. |
Configlet Value |
Specify the start pod ID for the upgrade of a stateful application. Only pods with IDs greater than the specified ID are upgraded. Rolling upgrade for front-end static packages does not support this field. |
Table-3 Configuring advanced settings
Parameter |
Description |
Startup Command |
Specify the commands required by container startup and operation, |
Storage Volumes |
Mount additional storage resources to the container in scenarios that require persistent storage and high disk I/O, You must first create storage volumes. For information about creating a storage volume, see "Configure a volume." |
ConfigMaps |
Select an existing ConfigMap for use by the application.
Mount Path: Specify the path to which the configuration data is mounted. |
Secrets |
Select an existing secret for use by the application.
|
Node Affinity |
Use affinity to restrict an instance to certain nodes and distribute instances to different topologies. Configure a node affinity rule that specifies on which nodes a pod is allowed to be scheduled. A node affinity rule can be a required one or a preferred one. |
Pod Affinity |
Configure a port affinity or anti-affinity rule that specifies which pods with workloads can be deployed to the same topology domain. |
Pod Anti-Affinity |
Configure a port affinity or anti-affinity rule that specifies which pods with workloads cannot be deployed to the same topology domain. |
Initial Container |
Configure an initial container to define basic configuration for service containers.
|
Health Check |
Identifies whether containers and services are operating correctly.
The following check methods are available:
Parameters include:
|
Container Privileges |
Configure container privileges.
|
Application Analyzer |
Monitors the system operating state, including infrastructure, microserivces, basic middleware, service gateways, and links and provides metric analysis tools. This parameter can be configured if the application diagnostics cloud service is deployed.
|
You can roll back an application if upgrade fails or the application must be restored to a history version.
To roll back an application:
On the top navigation bar, click Business Apps, and then select Applications from the App Management menu. Or, on the top navigation bar, click Business Apps, select Application Groups from the App Management menu, and then click an application group name.
Click an application name.
Click Roll Back.
Select a history version, and then select Roll Back To.