PolarDB for MySQL supports three billing methods: subscription, pay-as-you-go, and serverless. Use the table below to match your workload pattern to the right method.
Choose a billing method
| Billing method | Best for | Payment | Compute nodes | Billing cycle | Switch to |
|---|---|---|---|---|---|
| Subscription | Stable, predictable workloads with a known usage duration | Upfront | Defined specifications | Based on the Duration you select | Pay-as-you-go |
| Pay-as-you-go | Unpredictable or short-term workloads | Post-paid | Defined specifications | Per second, billed hourly | Subscription |
| Serverless | Fluctuating or unpredictable workloads; individual developers; development and staging environments; IoT and edge computing | Post-paid | Dynamic (scales automatically in PolarDB Capacity Units, or PCUs) | Per second, billed hourly | Not supported |
Some billable items support only the pay-as-you-go billing method. For details, see Billable items. Switch rules vary by edition. For details, see Switch billing methods.
Serverless billing unit: A PolarDB Capacity Unit (PCU) is the billing unit for serverless clusters. Serverless clusters are billed per second based on the average number of PCUs consumed. For the full pricing formula, see Billing rules for serverless compute nodes.
Configuration changes
When you change a cluster's configuration, charges adjust based on the billing method. For details, see Change configurations.
| Billing method | How charges adjust |
|---|---|
| Subscription | Upgrades and added nodes incur additional fees. Downgrades and deleted nodes generate a refund. |
| Pay-as-you-go | After you change the configuration, you are charged hourly based on the price of the new configuration. |
| Serverless | Configuration changes are not supported. Compute resources scale automatically based on the service payload. |
Expiration and overdue payments
Service interruptions may occur when a subscription cluster expires or a payment becomes overdue. The system sends a notification for both events. To prevent interruptions, add funds to your Alibaba Cloud account or renew the cluster immediately. For details, see Expiration and overdue payments.