Upgrade a service instance

更新时间:
复制 MD 格式

When a service provider releases a new service version, you can upgrade your service instances to it.

Prerequisites

  • The service has at least two versions, and the new service version must support service instance upgrades. For more information about how to create a new service version, see Update a service. For more information about how to configure service upgrades, see Configure service upgrades.

  • You have deployed a service instance using an earlier service version. For more information, see Deploy a service instance.

Upgrade a single service instance

When a new service version is available, you can upgrade a service instance. This section explains the process.

  1. Log on to the Compute Nest console.

  2. In the left-side navigation pane, click Service Instance.

  3. On the Service Instance page, find the service instance to upgrade and click its ID to open the details page.

  4. In the upper-right corner, click Upgrade Service Instance.

  5. In the Upgrade Service Instance dialog box, select a target version from the Upgrade Version drop-down list. Then, confirm the required permissions, such as AliyunComputeNestPolicyForFullAccess, select the checkbox to grant permissions to the service provider, and click Start Upgrade.

  6. After the upgrade starts, the Status field in the Overview section of the service instance details page displays Upgrading. When the upgrade is complete, the Status changes to Deployed, and Service Version updates to the version you selected in Step 5.

Batch upgrade

When a new service version is available, service providers can batch-upgrade private deployment and fully managed single-tenant service instances that have been granted upgrade permissions.

How it works

The batch upgrade feature uses CloudOps Orchestration Service (OOS) and its BulkyUpgradeServiceInstance template.

image

  1. The system uses the parameters selected on the batch upgrade page to call the Compute Nest API and retrieve a list of eligible service instances.

  2. The system iterates through the list and calls the Compute Nest API to upgrade each service instance. You can configure the number of service instances to upgrade concurrently.

  3. If any service instance fails to upgrade, the entire task stops.

Procedure

  1. Log on to the Compute Nest console.

  2. In the left-side navigation pane, click Service Instance, and then select the My Service Instance tab.

  3. Find the service whose instances you want to batch-upgrade, and click the service name or ID to open the Service Details page.

  4. Click the O&M Management tab.

  5. In the Batch O&M section, click Batch Upgrade.

  1. In the dialog box that appears, configure the batch upgrade parameters.

Parameter

Description

Parameter configuration

In the Parameter Configurations section, set the Target Instance and Upgrade service version parameters.

  • In the Upgrade service version section, select the target version for the batch upgrade. This parameter filters the list to show only service instances that can be upgraded to this version.

  • In the Target Instance section, select which instances to upgrade.

    • Manually select instances: In the instance list, select instances by searching for instance status and version.

    • Specify instance tags: Select instances by specifying one or more tags within the same region.

    • Specify instance resource group: Select instances by specifying a resource group within a region.

    • Select all: Select all instances that match the filtered status and version.

Advanced options

In the Advanced Options section, set the RateControl and OOSAssumeRole parameters.

Note

These parameters are optional. If left unconfigured, Compute Nest applies the default settings.

  • For RateControl, select a Rate Control and configure its parameters. For more information, see Rate controls for loop executions.

    • If you select Concurrency-based Control, you must set parameters such as Concurrency and Error Threshold.

    • If you select Batch-based Control, you must set parameters such as Batch Array, Loop Concurrent Execution Control, and Error Threshold.

  • For OOSAssumeRole, select a RAM role.

Task settings

In the Task Description field, enter a brief description.

  1. Click Next.

On the OK tab, review the basic information and resource preview for the batch upgrade.

After confirming the information, click Create.

  1. Click Create. You can then view the task's execution status on the O&M Management tab.

After the batch task is submitted, the execution record is displayed in the Batch O&M section on the O&M management tab. The list includes columns such as Execution ID, Task Type/Custom Template, Execution Status (Running, Failed, Succeeded), Execution Input, Execution Output, and Actions.

  1. In the Actions column, click Details to view the OOS task execution details.

After you submit the task, you can monitor the upgrade progress on the Execution Steps and Results page. Click the Upgrade Service Instances on Compute Nest Service Provider Side step and select the Loop Task List tab to view details for each service instance, including the batch number, target object, execution status, start time, end time, and output results.