All Products
Search
Document Center

Elastic Compute Service:Modify an auto provisioning group

Last Updated:Mar 28, 2024

You can modify the name, capacity, and capacity-related settings of an auto provisioning group to better meet your business requirements and improve system flexibility and scalability. For example, you can determine whethter instances in an auto provisioning group are stopped when the real-time capacity of the group exceeds the target capacity.

Prerequisites

Your account is granted permissions on Auto Provisioning. For more information, see Manage the service-linked role for Auto Provisioning.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Deployment & Elasticity > icon1 > Auto Provisioning.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the Auto Provisioning page, find the auto provisioning group that you want to modify and click Modify in the Actions column.

    The following table lists the parameters that can be modified.

    Section

    Description

    Basic Information

    The auto provisioning group name can be modified.

    Group Capacity

    The following capacities can be modified:

    • Target Capacity: the capacity that the auto provisioning group is scheduled to provision. You can specify this capacity in terms of instances or vCPUs. After you select Use Pay-as-you-go Instances to Provide Computing Power, you can specify the compute capacity (computing power) provided by the pay-as-you-go instances.

    • Target Capacity of Pay-As-You-Go Instances: the target capacity of pay-as-you-go instances that the auto provisioning group is scheduled to provision. You can specify this capacity in terms of instances or vCPUs. You can use pay-as-you-go instances to ensure that the lowest compute capacity requirements can be met because preemptible instances may be reclaimed.

    Note

    When you create an auto provisioning group by calling the CreateAutoProvisioningGroup operation, you can specify the target capacity in terms of instances, vCPUs, and the memory size.

    Capacity Settings

    The following capacity-related settings can be modified:

    • Default Billing Method of Supplemental Instances: Preemptible Instances and Pay-As-You-Go Instances are supported. When the sum of the Target Capacity of Pay-As-You-Go Instances and Target Capacity of Preemptible Instances values is less than the Target Capacity value, the auto provisioning group automatically creates instances that use the specified billing method to fulfill the target capacity.

    • Global Maximum Price for Preemptible Instances: You can modify the global maximum hourly price. If the specified maximum hourly price is less than the market price, preemptible instances fail to be created and high instance costs are prevented.

    • Shut Down Instances Upon Group Expiration: This setting affects the status of instances in the auto provisioning group after the auto provisioning group expires. If the switch is turned on, instances in the auto provisioning group are released. If the switch is turned off, instances are removed from the auto provisioning group but not released.

    • Shut Down Excess Instances When Target Capacity Is Exceeded: This setting affects the status of scaled-in instances in the auto provisioning group when the real-time capacity of the auto provisioning group exceeds the target capacity and the group is triggered to scale in. If the switch is turned on, scaled-in instances are released. If the switch is turned off, scaled-in instances are removed from the auto provisioning group but not released.

    Note

    Regardless of the auto provisioning group type, a scheduling task is triggered after you modify the capacity or capacity-related settings.

  5. Click OK.

References

You can call the ModifyAutoProvisioningGroup operation to modify the settings of an auto provisioning group. For more information, see ModifyAutoProvisioningGroup.