Spot Pricing

Concept

HUAWEI CLOUD sells available computing resources at a discount. The price changes in real time depending on market demands. This is the spot price billing mode.

An ECS billed in spot price billing mode is a spot price ECS.

In spot price billing mode, you can purchase and use ECSs at a discount price. The performance of spot price ECSs is the same as that of the ECSs with the same specifications in other billing modes. However, when inventory resources are insufficient, or the market price increases and exceeds your expected price, the system will automatically release your ECS resources and reclaim the ECSs. Compared with pay-per-use and yearly/monthly ECSs, spot price ECSs offer the same level of performance while at lower costs.

Working Rules

The market price for the ECSs of a certain flavor fluctuates due to supply-and-demand changes. You can purchase and use spot price ECSs at a low market price to reduce computing costs.

When purchasing a spot price ECS, you are required to set the maximum price you are willing to pay for a specified flavor. A higher price ensures a greater success rate for you to purchase such an ECS.

  • If the maximum price is greater than or equal to the market price and the inventory resources are sufficient, the spot price ECS is purchased. The ECS is billed at the market price.
  • If the maximum price is less than the market price, the spot price ECS cannot be purchased.

After purchasing a spot price ECS, you can use it like using the ECSs in other billing modes. However, the system will periodically compare the maximum price with the market price and check the inventory resources.

  • If the maximum price is greater than or equal to the market price and the inventory resources are sufficient, you can continue using the ECS.
  • If the maximum price is less than the market price or the inventory resources are insufficient, the system notifies you of releasing the ECS resources (notification is enabled) and automatically deletes the ECS in about 5 minutes.
Figure 1 Lifecycle of a spot price ECS

Application Scenarios

  • What are supported?

    Spot price ECSs are suitable for image rendering, stateless web service, gene sequencing, offline analysis, function calculation, batch calculation, sample analysis, CI/CD, and test.

    When the market price is higher than the maximum price you are willing to pay or the inventory resources are insufficient, the spot price ECSs will be reclaimed. Therefore, back up data when using such ECSs.

  • What are not supported?

    To prevent ECS reclamation from interrupting services, do not use spot price ECSs to run the services requiring long-time operations or high stability.

Notes

  • Only KVM ECSs support spot price payments. For details about the ECS flavors, see the information displayed on the management console.
  • The market prices of the ECSs of the same flavor may vary depending on AZs.
  • Spot price ECSs do not support OS changing.
  • Spot price ECSs do not support automatic recovery.
  • Spot price ECSs do not support specifications modification.
  • Spot price ECSs cannot be created using a Marketplace image.
  • Spot price ECSs cannot be switched to yearly/monthly ECSs.
  • When a spot price ECS is being reclaimed,
    • It cannot be used to create system disk images and full-ECS images. However, data disks of the ECS can be used to create data disk images.
    • It cannot be deleted.

Billing Rules

For details, see Billing.

Billing Examples

  • Example 1: If the market price is higher than the maximum price you set, the spot price ECS is released. The unit price is based on the market price when the ECS was purchased.

    At 08:30, the market price is ¥0.02/hour, and the maximum price is ¥0.04/hour. Then, the ECS is billed at ¥0.02/hour.

    At 09:00, the market price is ¥0.03/hour.

    At 10:00, the market price is ¥0.04/hour.

    At 10:30, the market price is ¥0.05/hour, which is higher than the maximum price. Then, the system notifies the user of ECS releasing.

    This ECS is billed in three billing periods.

    During 08:30-09:00, the ECS had been running for 30 minutes and it is billed on second: 0.02/3600 x 30 x 60 = ¥0.01

    During 09:00-10:00, the ECS had been running for 1 hour and it is billed at the transaction price at 09:00, which is ¥0.03/hour.

    During 10:00-10:30, the ECS had been running for 30 minutes and it is billed on second: 0.04/3600 x 30 x 60 = ¥0.02

    The total price is ¥0.06 for the running duration of 2 hours.

  • Example 2: If inventory resources are insufficient, the system releases a spot price ECS and bills it on second based on the service duration and the market price when the ECS was purchased.

    At 08:30, the market price is ¥0.02/hour, and the maximum price is ¥0.06/hour. Then, the ECS is billed at ¥0.02/hour.

    At 09:00, the market price is ¥0.03/hour.

    At 10:00, the market price is ¥0.04/hour.

    At 10:30, the market price is ¥0.05/hour. Although the market price is lower than the maximum price, the system releases this ECS due to insufficient inventory resources.

    This ECS is billed in three billing periods.

    During 08:30-09:00, the ECS had been running for 30 minutes and it is billed on second: 0.02/3600 x 30 x 60 = ¥0.01

    During 09:00-10:00, the ECS had been running for 1 hour and it is billed at the transaction price at 09:00, which is ¥0.03/hour.

    During 10:00-10:30, the ECS had been running for 30 minutes and it is billed on second: 0.04/3600 x 30 x 60 = ¥0.02

    The total price is ¥0.06 for the running duration of 2 hours.

Purchasing a Spot Price ECS

You can purchase a spot price ECS on the management console or by calling APIs.

  • For instructions about how to purchase a spot price ECS on the management console, see Purchasing a Spot Price ECS.
  • For instructions about how to purchase a spot price ECS by calling APIs, see "Creating an ECS" in Elastic Cloud Server API Reference.

Reclaiming an ECS

HUAWEI CLOUD may reclaim and terminate your spot price ECS at any time. A spot price ECS that is being reclaimed cannot be used to create images.

The reclamation may be due to:

  • Higher market price than the maximum price you are willing to pay
  • Insufficient inventory resources
    • If a spot price ECS is reclaimed within the first hour after it is provisioned, the spot price ECS is not billed.
    • In the first settlement period (in hours) of a spot price ECS, the spot price ECS is billed, regardless of whether it runs.
    • The time required for reclaiming a spot price ECS is 5 minutes. During the reclaiming, if the sharp clock is exceeded, the spot price ECS is billed at the market price for the time after the sharp clock.
    • During the running of a spot price ECS, its price is updated once an hour. After a spot price ECS is restarted, or it is stopped and then started, it is billed at the market price when the ECS starts.

Back up data on spot price ECSs. Before the system reclaims your spot price ECS, it will notify you of resource releasing if notification is enabled. Use either of the following methods to enable notification:

  • Method 1: Use the spot metadata. For details, see Obtaining Metadata.
  • Method 2: Use Cloud Trace Service (CTS) and Simple Message Notification (SMN) provided on the public cloud. For details, see Purchasing a Spot Price ECS.

FAQs

See FAQs.