Pay-per-Use
Pay-per-use is a billing mode in which you pay after using the service. This mode is recommended if you do not need any prepayment or long-term commitment. This section describes the billing rules for pay-per-use RocketMQ instances.
Scenario
Pay-per-use is applicable to short-term, abrupt, or unpredictable services that cannot be interrupted, such as e-commerce flash sales, temporary testing, and scientific computing.
Billing Items
DMS for RocketMQ charges you for your RocketMQ instance and disk storage space. They support pay-per-use billing.
Billing Item |
Description |
---|---|
Instance |
|
Storage space |
Total storage space fees (Single broker's storage space × Broker quantity) |
Assume that you plan to purchase a RocketMQ 4.8.0 instance with 300 GB storage space. At the bottom of the Buying a RocketMQ Instance page, you can view price details, as shown Figure 1.
The price includes:
- Instance fee: Calculated based on the selected broker flavor and quantity.
- Storage space fee: Calculated based on the selected disk type and total disk storage space (Single broker's storage space × Broker quantity).
Billing Period
A pay-per-use RocketMQ instance is billed in seconds, and settled on the hour (UTC+8). Once settlement is complete, it enters a new billing period. The billing starts from the time when the RocketMQ instance is successfully created and ends at the time when the instance is deleted.
For example, if you purchase a pay-per-use RocketMQ instance at 8:45:30, and delete it at 8:55:00, the billing period is from 8:00:00 to 9:00:00. Fees are generated from 8:45:30 to 8:55:30, and the billing duration is 600 seconds.
Billing Samples
Assume that you purchased a pay-per-use RocketMQ 4.8.0 instance (rocketmq.4u8g.cluster.small x 1, high I/O 300 GB total storage space) in AP-Singapore on Apr 18, 2023, 9:59:30. The billing items include the instance (broker flavor and quantity) and storage space (high I/O 300 GB). Then, you delete it on Apr 18, 2023, 10:45:46:
- The first billing period is from 9:00:00 to 10:00:00. Fees are generated from 9:59:30 to 10:00:00. The billing duration is 30 seconds within the period.
- The second billing period is from 10:00:00 to 11:00:00. Fees are generated from 10:00:00 to 10:45:46. The billing duration is 2746 seconds within the period.
You need to pay for each billing period, and RocketMQ instance resources are charged individually. The billing formula is shown in Table 2. The price of a resource listed in the product pricing details is the hourly price. Divide it by 3600 to obtain the price for each second.
Resource Type |
Billing Formula |
Resource Unit Price |
---|---|---|
Instance |
Instance specification unit price x Purchase duration |
For instance prices, see Product Pricing Details. |
Storage space |
Storage space unit price × Purchase period |
For storage prices, see Product Pricing Details. |
Figure 2 shows the billing calculation.
The prices in the following two pictures are for reference only. Actual prices are subject to Product Pricing Details.
Impact on Billing After Specification Change
If you change instance specifications after purchasing a pay-per-use instance, a new order will be generated based on the new specification's price. The old order automatically becomes invalid.
If you change instance specifications within one hour, multiple billing records will be generated. The start time and end time of each billing record correspond to when different specification comes to effect within the hour.
For example, assume that you purchase a pay-per-use instance (rocketmq.4u8g.cluster x 1) at 9:00:00. You upgrade the instance flavor to rocketmq.8u16g.cluster x 1 at 9:30:00. Then, two billing records are generated from 9:00:00 to 10:00:00.
- The first billing record corresponds to 9:00:00–9:30:00, based on the price for rocketmq.4u8g.cluster x 1.
- The second billing record corresponds to 9:30:00–10:00:00, based on the price for rocketmq.8u16g.cluster x 1.
Arrears Impact
Figure 3 describes the status of each stage of a pay-per-use RocketMQ instance. After you purchase a RocketMQ instance, the instance is running properly within the billing period, this period is the valid period; when the automatic billing of a pay-per-use RocketMQ instance leads to arrears on your account, the account status turns to arrears, and your RocketMQ instance enters the grace period and retention period accordingly.
Arrears Alert
The system will deduct fees for pay-per-use resources upon the end of each billing cycle. When your account is in arrears, we will notify the Huawei Cloud account creator by email, SMS, and internal message.
Arrears Impact
- If your account is in arrears, your resources enter the grace period.
When your account is in arrears due to automatic fee deduction for pay-per-use RocketMQ instances, the account status turns to arrears. In arrears, the pay-per-use resource continues rendering service but the resource enters the grace period. You need to pay the fees of your pay-per-use resource incurred during the grace period. To view the fees, go to the Billing Center > Overview page. Huawei Cloud will deduct the fees after you top up your account.
- If your account is still in arrears after your resource grace period ends, your resources enter the retention period.
If you do not pay the arrears within the grace period, the resource enters the retention period and its status turns to Frozen. You cannot perform any operations on pay-per-use resources in the retention period.
- If your account is still in arrears after your resource retention period ends, your resources will be released permanently.
If you do not pay the arrears within the retention period, your RocketMQ instance will be released, and data will be lost.
- For details about the grace period and the retention period, see What Is a Grace Period of Huawei Cloud? How Long Is It? and What Is a Retention Period of Huawei Cloud? How Long Is It?
- For details about topping up your account, see Making Repayments (Postpaid Direct Customers).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot