As a service provider, you can enable the configuration change feature when creating a service. This lets your customers upgrade, downgrade, or customize the configurations of a service instance without recreating it.
Billing
Compute Nest does not charge platform service fees. However, you are charged for the cloud resources used to deploy a service, such as Server Load Balancer (SLB) instances and Elastic Compute Service (ECS) instances. For billing details, see Billing.
Create a service with configuration change enabled
Prerequisites
Before you begin, ensure that you have:
-
Access to the Compute Nest console
-
A service template ready to publish
To support the Change Plan method, configure at least one parameter set in the service before completing this procedure. Without a parameter set, Change Plan is unavailable.
Configure the service template
Before enabling configuration change, update your service template to support the operations you need:
-
Change instance type: Set the
UpdatePolicyproperty of theALIYUN::ECS::InstanceGroupresource toForAllInstances. -
Re-run a command on change: Set the
Synsproperty of theALIYUN::ECS::RunCommandresource totrue. The resource re-executes during the configuration change.
Enable configuration change
-
Log on to the Compute Nest console.
-
In the left-side navigation pane, click My Services. On the Created Services tab, click Create Service.
-
On the Create Service page, configure the service parameters, then turn on Service Instance Configuration Change.
-
In the Configuration Change Operation section, click Add Operation.
-
In the Add Operation dialog box, configure the operation:
-
From the Select Template drop-down list, select a template. Template 1 is selected by default.
-
In the Operation Name field, enter a name. Example:
Resize system disk. -
In the Operation Description field, enter a description.
-
Set Operation Type to one of the following values. Each type enforces different constraints on parameter changes.
Operation type Parameter set constraint Numeric parameters Boolean parameters AllowedValues Custom parameter set Upgrade Serial number must be greater than the current set Monotonically increasing only Cannot change from truetofalseMonotonically increasing sequence Not allowed Downgrade Serial number must be smaller than the current set Monotonically decreasing only Cannot change from falsetotrueMonotonically decreasing sequence Not allowed Customize No limits No limits No limits No limits Allowed -
Set the Method parameter:
-
Change Plan: Uses a parameter set. Requires at least one parameter set configured for the service.
-
Change Parameter: Lets customers modify individual parameters. Compute Nest filters out non-modifiable parameters, so only eligible parameters appear in the Select Parameters section.
-
-
If you selected Change Parameter, go to the Select Parameters section and select the parameters that customers can modify.
For this example, select Change Plan and Change Parameter for the change method. Under Select Parameters, select the parameters to change, such as
DataDiskSize. Click OK to add the configuration change operation. -
-
Click Save Service.
Change the configurations of a service instance
Prerequisites
Before you begin, ensure that you have:
-
A service instance. For instructions on creating a service instance, see Create a private service instance.
Change configurations
-
On the Service Instance Details page, view the current configurations in the Configuration Information section.
In this example, the service instance uses zone
cn-hangzhou-i, instance typeecs.g6e.large, and billing methodPostPaid. The instance has a 40 GiBcloud_essdsystem disk, a 100 GiBcloud_essddata disk,PayByTraffic, Internet bandwidth 0, and RegionIdcn-hangzhou. The 100 GiB data disk and theecs.g6e.largeinstance type are the key values to track. -
In the upper-right corner, click Change Configurations of Service Instance.
-
In the Change Configurations of Service Instance dialog box, select an operation type and click Next.
In the Upgrade section, select Data Disk Expansion.
-
In the Configure Parameters step, set the parameter values for the configuration change. Click Next.
Select Parameter Set 2 (instance type
ecs.g6e.xlarge, general-purpose enhanced g6e, 4 vCPUs and 16 GiB of memory). In the ECS Configuration section, set Data Disk Size to200GiB. Valid values: 20 to 32768. Unit: GiB. -
In the Preview Parameter Changes step, review the updated parameter values and confirm the changes are correct before proceeding.
After you confirm that the settings are correct, click OK to complete the configuration change.
-
Click OK.
Verify the change
After the configuration change completes, go to the Configuration Information section on the Service Instance Details page. If the parameter values reflect your changes, the configuration change was successful.
In this example, confirm that Data Disk Size is 200 and Instance Type is ecs.g6e.xlarge.