Updated on 2024-05-15 GMT+08:00

Billing Examples

Scenario

A user purchased a pay-per-use RocketMQ 4.8.0 instance in AP-Singapore on Mar 18, 2023, 15:30:00:

  • Flavor: rocketmq.4u8g.cluster x 1
  • Total storage space: high I/O, 300 GB

After a period of time, the user finds the current RocketMQ instance no longer meets service requirements. The flavor is upgraded to rocketmq.8u16g.cluster x 1 on Mar 20, 2023, 9:00:00. Since the RocketMQ instance is intended for long-term use, the billing mode is switched to yearly/monthly on Mar 20, 2023, 10:30:00, and the billing period is for one month. How much is the total fee of the RocketMQ instance in March and April?

Billing Analysis

The usage of the RocketMQ instance can be divided into two phases based on the billing mode: pay-per-use from Mar 18, 2023, 15:30:00 to Mar 20, 2023, 10:30:00, and yearly/monthly from Mar 20, 2023, 10:30:00 to Apr 20, 2023, 23:59:59.

Pay-per-Use

From Mar 18, 2023, 15:30:00 to Mar 20, 2023, 09:00:00, the billing is based on rocketmq.4u8g.cluster x 1 for 41.5 hours. The fees are calculated as follows:

From Mar 20, 2023, 09:00:00 to Mar 20, 2023, 10:30:00, the billing is based on rocketmq.8u16g.cluster x 1 for 1.5 hours. The fees are calculated as follows:

Yearly/Monthly

From Mar 20, 2023, 10:30:00 to Apr 20, 2023, 23:59:59, the billing mode is yearly/monthly, and the billing period is for one month. The fees are calculated as follows:

From March to April, the total fee generated by the RocketMQ instance: 117.45 + 8.15 + 2613 = USD2738.6.