Help Center> GaussDB(for MySQL)> Billing> Billing Examples
Updated on 2023-09-18 GMT+08:00

Billing Examples

Billing Scenario

At 16:00:00 on March 18, 2023, you purchased a pay-per-use DB instance at CN-Hong Kong.

  • Specifications: 2 vCPUs | 8 GB
  • Nodes: 2

After a period of time, the current instance no longer met business requirements. The specifications were upgraded to 4 vCPUs | 16 GB at 9:00:00 on March 20, 2023. As you intend to use the DB instance for a long time, you changed the billing mode from pay-per-use to yearly/monthly at 10:30:00 on March 20, 2023. The subscription duration was one month. How much can you be billed for the DB instance in March and April?

Billing Analysis

The usage of the DB instance can be divided into two parts, based on the billing mode.

  • Pay-per-use billing: March 18, 2023, 16:00:00 to March 20, 2023, 10:30:00
    • March 18, 2023, 16:00:00 to March 20, 2023, 9:00:00
      • Instance specifications: 2 vCPUs, 8 GB
      • Nodes: 2
      • Storage: 20 GB
      • Backup space: 20 GB
    • March 20, 2023, 9:00:00 to March 20, 2023, 10:30:00
      • Instance specifications: 4 vCPUs | 16 GB
      • Nodes: 2
      • Storage: 10 GB
      • Backup space: 15 GB (5 GB was billed at a pay-per-use basis from March 20, 2023, 10:00:00 to March 20, 2023, 10:30:00)
      • EIP bandwidth: 6 Mbit/s
      • Monitoring by Seconds: enabled (Collection period was 1s).
  • Yearly/monthly billing: March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59
    • Instance specifications: 4 vCPUs | 16 GB
    • Nodes: 2
    • Storage: 80 GB
    • Backup space: 100 GB (20 GB was billed at a pay-per-use basis from April 10, 2023,23:59:59 to April 20, 2023, 23:59:59)
    • EIP bandwidth: 6 Mbit/s
    • Monitoring by Seconds: enabled (Collection period was 1s).
    • Billing period: 1 month

The price in the figure is for reference only. The actual prices are subject to GaussDB(for MySQL) Pricing Details.

Price in the pay-per-use phase

  1. You would be billed for the DB instance from 16:00:00 on March 18, 2023 to 9:00:00 on March 20, 2023, based on 2 vCPUs and 8 GB memory. The billed duration would be 41 hours. Monthly settlement was not used. The billed duration of each resource was as follows.

  2. You would be billed for the DB instance from 9:00:00 on March 20, 2023 to 10:30:00 on March 20, 2023 based on 4 vCPUs and 16 GB of memory. The billing period would be 1.5 hours. Monthly settlement was not used. The billed duration of each resource was as follows.

Price in the yearly/monthly phase

From 10:30:00 on March 20, 2023 to 23:59:59 on April 20, 2023, the billing mode was yearly/monthly. The billing period was 1 month. The price was calculated as follows.

From March to April, the total expenditure generated by the DB instance was $716.65 USD (21.99 + 1.73 + 692.93).