Help Center/ GaussDB/ Billing/ Billing Modes/ Pay-per-Use Billing
Updated on 2025-06-12 GMT+08:00

Pay-per-Use Billing

Pay-per-use billing means you pay nothing up front and are not tied into any contract or commitment. This section describes the billing rules for pay-per-use GaussDB instances.

Application Scenarios

Pay-per-use billing is good for short-term, bursty, or unpredictable workloads that cannot tolerate any interruptions, such as applications for e-commerce flash sales, temporary testing, and scientific computing.

Billed Items

You are billed for the following items on a pay-per-use basis.

Table 1 Items billed on a pay-per-use basis

Billed Item

Description

DB instance

CNs and DNs are billed on a pay-per-use basis. Management nodes, including CMSs and GTMs, are not billed.

Database storage (pay as you use)

Instance storage space.

Backup storage (pay as you use)

GaussDB provides free backup storage equal to the amount of your purchased storage.

After the free backup space is used up, charges are applied based on the backup space pricing details. Pricing is listed on a per-hour basis, but bills are calculated based on the actual usage duration.

(Optional) EIP bandwidth

GaussDB instances can be accessed through a public network, and traffic fees are generated accordingly. You are not billed for traffic generated through a private network.

Suppose you want to purchase a pay-per-use distributed DB instance with general-enhanced II specifications, 8 vCPUs, and 64 GB of memory, and the instance contains 1 shard, 3 replicas, 1 CN, and 160 GB of storage. At the bottom of the Buy DB Instance page, you can view pricing details (excluding the backup space prices).

Figure 1 Example prices

The backup space price is not included. For details about the backup price, see the Product Pricing Details page of the price calculator.

Billed Usage Period

Pay-per-use GaussDB instance usage is calculated by the second and billed every hour (UTC+08:00). The billing starts when the GaussDB instance is launched and ends when the instance is deleted.

It takes a certain time to create a GaussDB instance. The billing starts from the time when the instance was successfully created.

For example, if you purchased a pay-per-use GaussDB instance at 8:45:30 and deleted it at 8:55:30, you are billed for the 600 seconds from 8:45:30 to 8:55:30.

Billing Examples

Suppose you purchased a pay-per-use distributed GaussDB instance at 9:59:30 on April 18, 2023 with general-enhanced II specifications, 8 vCPUs, and 64 GB of memory, and the instance contains 1 shard, 3 replicas, 1 CN, and 160 GB of storage. The billed resources include instance specifications (vCPUs, memory, and nodes), storage space, and backup space. Then you deleted the instance at 10:45:46 on April 18, 2023. The following usage periods will be billed:

  • April 18, 2023, 9:00:00 to April 18, 2023, 10:00:00

    Usage of 30 seconds from 9:59:30 to 10:00:00

  • April 18, 2023, 10:00:00 to April 18, 2023, 11:00:00

    Usage of 2,746 seconds from 10:00:00 to 10:45:46

    • From April 18, 2023, 10:00:00 to April 18, 2023, 10:45:00, free backup space was used.
    • From April 18, 2023, 10:45:00 to April 18, 2023, 10:45:46, an extra 10 GB of backup space was used, which was billed for 46 seconds.

Figure 2 shows how the total price is calculated.

The prices in the figure are just examples. The actual prices are those displayed on GaussDB Pricing Details.

For pay-per-use billing, decimal numerals on the price calculator are rounded off and are accurate to two decimal places. If the fee is less than $0.01 USD (after rounding off), $0.01 USD will be displayed.

Figure 2 Total price for a pay-per-use GaussDB instance

Price Change After Specification Change

If you change the specifications of a pay-per-use instance, the original order will become invalid and a new order will be placed. You will be billed based on the new specifications.

If you change instance specifications within a given hour, multiple records will be generated. Different records record the billing for different specifications.

For example, if you purchased a pay-per-use DB instance (8 vCPUs | 64 GB) at 9:00:00 and changed the instance specifications to 16 vCPUs | 128 GB at 9:30:00, the following items will be billed:

  • DB instance (8 vCPUs | 64 GB) usage from 9:00:00 to 9:30:00
  • DB instance (16 vCPUs | 128 GB) usage from 9:30:00 to 10:00:00

Impact of Arrears

Figure 3 shows the statuses a pay-per-use GaussDB instance can have throughout its lifecycle. After a GaussDB instance is purchased, it enters the validity period and runs normally during this period. If your account goes into arrears, your instance enters a grace period and if no payments are made within the specific time, it enters a retention period.

Figure 3 Lifecycle of a pay-per-use GaussDB instance

Arrears Reminder

The system will bill you for pay-per-use resources after each billing cycle ends. If your account goes into arrears, we will notify you (the one who created the Huawei Cloud account) by email, SMS, or in-app message.

Impact of Arrears

Your account may fall into arrears if it cannot cover the bill you need to pay and the pay-per-use instance enters the grace period. You are still responsible for expenditures generated during the grace period. You can view the charges on the Billing Center > Overview page and pay any past due balance as needed.

If bills are not paid during the grace period, your pay-per-use resources enter a retention period and get frozen, meaning you cannot perform any operations on them.

If you do not pay the arrears within the retention period, your instance will be released, and data will be lost.

  • The grace period and retention period are both 15 days.