This topic describes billable items and billing rules of PolarDB for MySQL serverless clusters.

Billable items

Note The fees of a serverless cluster with defined specifications include the fees of the common cluster and the fees of the serverless feature. For more information about the fees of a common cluster, see Billable items. For more information about the fees of the serverless feature, see this topic.
Billable itemDescription
Compute node
  • Serverless compute nodes include the primary node and read-only nodes.
  • Serverless compute nodes are scaled in units of 0.5 PCUs. The billing duration is accurate to the second, and bills are generated per hour based on PCUs. The hourly bill is calculated by using the following formula:

    (Sum of PCUs per second/3600) × Hourly price of PCUs

    The bill of a compute node depends on the region where the node is deployed and the duration.
Storage space
  • Storage space is used to store cluster data files, index files, log files, and temporary files. Log files include online and archived logs. You are charged for the amount of storage space that you use.
  • The amount for which you are charged depends on the volume of data stored and the length of time for which data is retained.
Backup storage space (only charged after the free quota is reached)
  • Backup files consume storage spaces. PolarDB for MySQL offers a free storage quota for backup files. After this quota is exhausted, you are charged for the amount of excess storage space consumed by backup files.
  • The amount for which you are charged depends on the size of data backup files and the length of time for which the files are retained.
SQL Explorer (optional)
  • The SQL Explorer feature provides value-added capabilities, such as security auditing and performance diagnostics. After you enable this feature, you are charged for the amount of storage space consumed by audit logs.
  • The amount for which you are charged depends on the size of audit logs and the length of time for which the logs are retained.
Note
  • If a serverless cluster runs normally, its compute nodes, storage capacity, backup storage space, and SQL Explorer (optional) are billed.
  • After a serverless cluster is suspended, the compute nodes are not billed. However, the storage capacity, backup storage space, and SQL Explorer (optional) remain billed.

Billing rules

Compute nodes

Compute nodes are billed on an hourly basis in PCUs. One PCU is approximately equal to 1 core (maximum) and 2 GB of memory. The following table describes the billing details.

Table 1. Hourly prices of a pay-as-you-go PCU
Billable itemRegion in the Chinese mainlandUS (Silicon Valley)Indonesia (Jakarta)Germany (Frankfurt)India (Mumbai)US (Virginia)Japan (Tokyo)Philippines (Manila)Thailand (Bangkok)South Korea (Seoul)SingaporeMalaysia (Kuala Lumpur)China (Hong Kong)UK (London)Australia (Sydney)
Compute nodeUSD 0.0611USD 0.0947USD 0.1069USD 0.1038USD 0.0916USD 0.0794USD 0.0977USD 0.1069USD 0.1069USD 0.0977USD 0.1160USD 0.1160USD 0.1160USD 0.1160USD 0.1160

The hourly fees of compute nodes are calculated in the following formula: [Unit price of PCUs × (Minimum number of read-only nodes + 1 primary node) × Minimum number of PCUs per node] to [Unit price of PCUs × (Maximum number of read-only nodes + 1 primary node) × Maximum number of PCUs per node].

Storage space

For serverless clusters, a serverless architecture is used for storage. Therefore, you do not need to specify the storage capacity when you purchase clusters. The storage capacity is automatically increased when the amount of data increases. You are charged for only the storage that you use. For more information about the billing rules, see Pay-as-you-go.

For the serverless feature of a fixed-specification cluster, the storage space uses the storage of the fixed-specification cluster. For more information, see Pay-as-you-go.

Backup storage space

Serverless clusters support level-1 backup, level -2 backup, and log backup. For more information about the billing rules, see Billing rules of backup storage that exceeds the free quota.

️SQL Explorer

You are charged for SQL Explorer only after the SQL Explorer feature is enabled. For more information about how to enable SQL Explorer, see ️SQL Explorer and Audit. For more information about the billing rules, see Billing rules of SQL Explorer (optional).