PolarDB for PostgreSQL lets you archive cold data from your cluster to an Object Storage Service (OSS) bucket to reduce your data storage costs. After you enable cold data tiering and perform cold data archiving, OSS charges are based on the storage capacity the archived data occupies.
For an overview of cold data tiering, see Overview of cold data tiering.
Billing rules
Charges apply per GB per hour based on the region where your cluster is deployed:
| Region | Price |
|---|---|
| Regions in the Chinese mainland | USD 0.0000325 per GB per hour |
| China (Hong Kong) and other regions outside the Chinese mainland | USD 0.0000455 per GB per hour |
You can to offset the OSS storage usage of your cold data and reduce storage costs. The deduction rules for storage plans are as follows:
Region type | Deduction factor | OSS storage capacity that can be offset by a 1 GB storage plan |
The Chinese mainland | 0.045 | 1/0.045=22.22 GB |
China (Hong Kong) and other regions outside the Chinese mainland | 0.045 | 1/0.045=22.22 GB |
For example, assume you purchase a 100 GB storage plan and have 50 GB of capacity remaining after offsetting other storage usage. If your cluster's cold data consumes 50 GB of OSS storage in a region in the Chinese mainland, the storage plan automatically uses 2.25 GB (50/22.22) of its capacity to offset this usage. The storage plan then has 47.75 GB of capacity remaining.
If the remaining capacity of the storage plan is insufficient to offset the OSS storage usage of cold data, the excess usage is billed on a pay-as-you-go basis.