After a service provider publishes a new version of a service, the service provider and customers can upgrade the service instances of the service to the new version based on business requirements. If you are a customer, you can upgrade a single service instance. If you are a service provider, you can upgrade multiple service instances at a time. This topic describes how to upgrade service instances.
Prerequisites
The service that you want to manage has at least two versions, and the later version of the service supports service instance upgrades. For more information about how to create a version of a service, see Update a service. For more information about the upgrade settings of service instances, see Configure service upgrades.
Service instances of an earlier version are deployed. For more information about how to deploy a service instance, see Deploy service instances.
Upgrade a single service instance
After a new version of a service is created, you can trigger the upgrade of a service instance as a customer. This section describes how to upgrade a service instance.
Log on to the Compute Nest console.
In the left-side navigation pane, click Service Instance.
On the Service Instance page, find the service instance that you want to upgrade and click the ID of the service instance to go to the Service Instance Details page.
In the upper-right corner of the Service Instance Details page, click Upgrade Service Instance.
In the Upgrade Service Instance dialog box, select the version to which you want to upgrade the service instance and click Start Upgrade.
After the upgrade starts, the service instance is in the Upgrading state. After the upgrade is complete, the state of the service instance changes to Deployed and the service version becomes the version selected in Step 5. In this case, the service instance is upgraded.
Upgrade multiple service instances at a time
After you publish a new version of a service as a service provider, you can upgrade multiple private service instances and single-tenant fully managed service instances at a time if you are granted the upgrade permissions on these service instances.
How it works
Multiple service instances can be upgraded by using CloudOps Orchestration Service (OOS). To upgrade multiple service instances at a time, you can use the BulkyUpgradeServiceInstance template.
Configure the parameters in the Batch Upgrade dialog box to call the ListServiceInstances operation of Compute Nest to query a list of service instances.
Traverse the queried service instances and call the UpdateServiceInstanceSpec operation of Compute Nest to upgrade service instances. You can specify the number of service instances to be upgraded each time.
If a service instance fails to be upgraded during the upgrade process, the upgrade task is stopped. Service instances that have not been upgraded are not upgraded in this task.
Procedure
Log on to the Compute Nest console.
In the left-side navigation pane, click Service Instance. On the Service Instance page, click the My Service Instance tab.
On the My Service Instance tab, find one of the service instances that you want to upgrade at a time and click the service ID to go to the Service Details page.
On the Service Details page, click the O&M Management tab.
In the upper-right corner of the O&M Management tab, click Batch Upgrade.
In the Batch Upgrade dialog box, configure the parameters that are described in the following table.
Section | Description |
Configure Parameters | In the Configure Parameters section, configure the Instance and Upgrade Service Version parameters.
|
Control Options | In the Control Options section, configure the RateControl and OOSAssumeRole parameters. Note The parameters in the Control Options section are optional. If you do not configure these parameters, Compute Nest uses the default settings of the parameters.
|
Task Settings | In the Task Description field, enter a brief description for the task. |
Click Next.
In the OK step, view the basic information and resource preview of the settings for upgrading the service instances.
Click Create. After the task is created, you can view the execution status of the task on the O&M Management tab.
On the O&M Management tab, find the task and click Details in the Actions column to view the status of the task.