Purchasing a Spot Price ECS
Scenarios
A spot price ECS is billed in spot price mode. You can purchase and use such 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. For more information about the spot price payments, see Spot Pricing.
How to Purchase a Spot Price ECS
Follow the instructions provided in Purchasing an ECS or Logging In to an ECS to buy spot price ECSs. Pay attention to the following settings:
When purchasing a spot price ECS, pay attention to the following settings:
- Set Billing Mode to Spot price.
In Spot price billing mode, your purchased ECS is billed based on the service duration at a lower price than that of a pay-per-use ECS with the same specifications. However, a spot price ECS may be reclaimed at any time based on the market price or changes in supply and demand.
- Set Maximum Price, which can be Automatic or Manual.
- Automatic is recommended, which uses the pay-per-use price as the highest price you are willing to pay for a spot price ECS.
- Manual requires you to set the upper price limit for a spot price ECS. The upper limit must be greater than or equal to the market price and less than or equal to the pay-per-use price.
- Click Next, confirm that the specifications and price are correct, agree to the service agreement, and click Submit.
A spot price ECS may be reclaimed by the system. Therefore, back up your data.
Constraints
- 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.
(Optional) How to Enable Reclaim Notification
After purchasing a spot price ECS, you can use it like using the ECSs in other billing modes. However, a spot price ECS may be reclaimed at any time based on the market price or changes in supply and demand.
If the maximum price you are willing to pay is less than the market price or the inventory resources are insufficient, the system notifies you of releasing the ECS resources and reclaims the ECS in about 5 minutes if notification is enabled. Use either of the following methods to enable notification:
Method 1: Use the spot metadata. For details, see Obtaining ECS Metadata.
Method 2: Use Cloud Trace Service (CTS) and Simple Message Notification (SMN) provided on the public cloud. For details, see Cloud Trace Service User Guide.
- Enable CTS. For details, see Enabling CTS.
Once you enable CTS, the system automatically identifies cloud services enabled on the cloud platform, obtains key operations on the services, and reports traces of these operations to CTS.
- Configure reclaim notification.
You can configure key event notification on CTS so that SMN sends messages to notify you of some key operations. This function is triggered by CTS, but notifications are sent by SMN.
- Log in to management console.
- Click
in the upper left corner and select the desired region and project. - Under Management & Deployment, click Cloud Trace Service.
- In the navigation pane on the left, choose Key Event Notifications.
- Click Create Key Event Notification in the upper right corner of the page and set parameters listed in Table 1.
Table 1 Parameters for configuring key event notification Type
Parameter
Configuration
Basic Information
Notification Name
The value is user-defined, for example, spottest.
Operation
Operation Type
Select Custom.
Operation List
Choose ECS > server > interruptServer and click Add.
User
Specified users
If you do not specify users, CTS notifies all users when key operations are initiated.
Topic
Send Notification
Select Yes.
SMN Topic
Select a topic from the drop-down list. If there is no proper SMN topic, create one.
- Click Topic to switch to the Topics page.
- Click Create Topic and set parameters as prompted. For details, see Creating a Topic.
- Click More in the Operation column of the newly added topic and select Add Subscription from the drop-down list. Then, you can receive notifications sent for the topic. For details, see Adding a Subscription.
After the configuration, you will receive a notification from HUAWEI CLOUD 5 minutes before your spot price ECS is deleted.
- (Optional) View reclaimed spot price ECSs.
- Under Management & Deployment, click Cloud Trace Service.
- In the navigation pane on the left, choose Trace List.
- Search for traces as needed. To do so, click Filter and specify filter criteria listed in Table 2.
- Locate the target trace and expand the trace details.
- Click View Trace in the Operation column for details.
Last Article: Spot Pricing
Next Article: Changing Pay-per-Use to Yearly/Monthly
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.