Help Center> GaussDB> Billing> Billing Examples
Updated on 2023-11-10 GMT+08:00

Billing Examples

Billing Scenario

A user purchased a pay-per-use distributed GaussDB instance at 8:30:00 on March 20, 2023. The instance configuration is as follows:

  • Instance specifications: General-enhanced II, 8 vCPUs | 64 GB, one shard, three replicas, and one CN
  • Storage space: 160 GB
  • EIP bandwidth: 6 Mbit/s

After a period of time, the user found that the current DB instance specifications no longer met service requirements and updated the specifications to 16 vCPUs | 128 GB at 10:00:00 on March 20, 2023. Since the user wanted to use the DB instance long term, the user then changed the instance to yearly/monthly billing with a one-month duration at 10:30:00 on the same day. So how much will the user be billed for this DB instance in March and April?

Billing Analysis

The total price of this DB instance involves both pay-per-use and yearly/monthly usage:

  • Pay-per-use usage: March 20, 2023, 8:30:00 to March 20, 2023, 10:30:00
    • March 20, 2023, 8:30:00 to March 20, 2023, 10:00:00
      • Instance specifications: General-enhanced II, 8 vCPUs | 64 GB, one shard, three replicas, and one CN
      • Used storage space: 40 GB
      • Used backup space: 40 GB
      • EIP bandwidth: 6 Mbit/s
    • March 20, 2023, 10:00:00 to March 20, 2023, 10:30:00
      • Instance specifications: General-enhanced II, 16 vCPUs | 128 GB, one shard, three replicas, and one CN
      • Used storage space: 20 GB
      • Used backup space: 30 GB
      • EIP bandwidth: 6 Mbit/s
  • Yearly/Monthly usage: March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59
    • Instance specifications: General-enhanced II, 16 vCPUs | 128 GB, one shard, three replicas, and one CN
    • Used storage space: 80 GB
    • Used backup space: 100 GB (billed on a pay-per-use basis from April 19, 2023, 23:59:59 to April 20, 2023, 23:59:59)
    • EIP bandwidth: 6 Mbit/s
    • Billed duration: one month

Pay-per-use

From March 20, 2023, 8:30:00 to March 20, 2023, 10:00:00, an instance with specifications 8 vCPUs | 64 GB was used for 1.5 hours, so the price would be calculated as follows.

From March 20, 2023, 10:00:00 to March 20, 2023, 10:30:00, a DB instance with specifications 16 vCPUs | 128 GB was used for 0.5 hour, so the price would be calculated as follows.

Yearly/Monthly

From March 20, 2023, 10:30:00 to April 20, 2023, 23:59:59, a DB instance purchased using yearly/monthly billing was used for one month, so the price would be calculated as follows.

From March to April, the total price of this GaussDB instance is $13,242.35 USD (20.34 + 13.50 + 13,208.51).