Updated on 2023-08-22 GMT+08:00

Billing Examples

Scenario

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

  • Flavor: kafka.2u4g.cluster × 3
  • Total storage space: high I/O, 300 GB

After a period of time, the user finds the current Kafka instance no longer meets service requirements. The flavor is upgraded to kafka.4u8g.cluster × 3 on Mar 20, 2023, 9:00:00. Since the Kafka 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 Kafka instance in March and April?

Billing Analysis

The usage of the Kafka 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 kafka.2u4g.cluster x 3 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 kafka.4u8g.cluster × 3 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 Kafka instance: 36.11 + 2.57 + 827.4 = USD866.08.