Create an ECS instance from a private pool

更新时间:
复制 MD 格式

After you purchase a resource reservation, Alibaba Cloud reserves resources with matching attributes in a private pool. This ensures that you can create instances with private pool capacity. This topic describes how to create an ECS instance by using private pool capacity.

Important

When you release a reserved bare metal instance, the private pool capacity it occupied takes a significant amount of time to become available again. During this period, attempts to create new instances with this capacity may fail. Plan the release time and frequency of your instances accordingly.

Prerequisites

Procedure

Console

This section describes only the parameters related to private pools. For information about other parameters, see Create an instance by using the custom launch wizard.

  1. You can start creating an instance from the console by using private pool capacity in one of two ways:

    • On the Instance page, click Create Instance.

      image

    • On the Resource Reservations page, find a resource reservation that is Active and click Buy Instance in the Actions column.

      image

  2. Complete the basic configurations.

    On the Custom Launch page, note the parameters in the following table.

    Parameter

    Description

    Billing Method

    • If the resource reservation is an elasticity assurance, an immediate capacity reservation, or a Savings Plan capacity reservation, set the billing method to Pay-as-you-go.

    • If the resource reservation is a subscription capacity reservation, set the billing method to Subscription.

    Region

    You must select the same region as the resource reservation.

    Network and Zone

    You must select the same network and availability zone as the resource reservation.

    Instance

    You must select the same instance type as the resource reservation.

    Images

    If the resource reservation is an immediate capacity reservation, you must select an image with a matching operating system (Linux or Windows).

  3. Configure Block Storage, Bandwidths & Security Groups, and Management Settings, and then click Advanced Options (Optional).

  4. In the Advanced Options (Optional) section, complete the other configurations, and then in the Private Pool Type section, specify whether and how to use private pool capacity. The following options are available:

    • Specify a private pool by ID: Set Private Pool Type to Targeted and specify the ID of a private pool. The ID of a private pool is the same as the ID of its corresponding resource reservation. If you use this method and the specified private pool has no available capacity, instance creation fails.

      Note

      Targeted private pools can be used only by specifying their IDs. Open private pools also support this method.

    • Automatic selection of an open private pool: Set Private Pool Type to Open. The system then automatically selects an open private pool of this type. If no open private pools of this type have available capacity, the system attempts to use public pool capacity.

      Note

      Only open private pools support automatic selection. Targeted private pools do not support this method.

    • Do not use private pool capacity: Set Private Pool Type to Do Not Use. The instance is created using only public pool capacity.

  5. Review your configurations and read the terms of service. Then, create the instance and complete the payment as prompted.

API

When you call the RunInstances operation to create an ECS instance, set the PrivatePoolOptions.MatchCriteria parameter to specify how to use a private pool.

  • Open: Open mode. The system automatically matches an open private pool. If no matching private pools have available capacity, the instance is launched using public pool resources. In this mode, you do not need to set the PrivatePoolOptions.Id parameter.

  • Target: Targeted mode. The instance is launched using capacity from a specified private pool. If the specified capacity is unavailable, the instance launch fails. In this mode, you must set the PrivatePoolOptions.Id parameter.

  • None: None mode. The instance is launched without using any private pool capacity.

Next steps

After you create an instance, you can go to the Private Pools tab to view the association between the instance and the private pool. For more information, see View reserved resources in a private pool.