If you enable and perform cold data archiving, cold data is separated from the source table and is archived to Object Storage Service (OSS). PolarDB charges you based on the storage usage of cold data in OSS. This topic describes the billing rules for cold data archiving. PolarDB allows you to use storage plans to reduce storage costs.
Prices
Regions in the Chinese mainland | China (Hong Kong) and regions outside China |
USD 0.0000325 per GB-hour | USD 0.0000455 per GB-hour |
Example: You enable and perform cold data archiving for a cluster deployed in the Chinese mainland. The amount of cold data archived in OSS is 100 GB. The hourly cold data storage fee is 100 GB × USD 0.0000325 per GB-hour = USD 0.00325 per hour.
For information about how to view the amount of archived cold data, see View information about the cold data archived in OSS.
Storage plans
You can use storage plans to offset the storage usage of archived cold data.
Storage plans can also be used to offset the storage usage of the cluster and the storage usage of level-1 backups or data backups, level-2 backups, and log backups.
Prices
The prices of storage plans vary based on the subscription duration and specifications. The larger the specifications and the longer the subscription duration, the more cost-effective the storage plan. For information about the prices of storage plans, see Prices.
Offset rules
A storage plan provides a fixed hourly quota to offset the storage usage of cold data archiving. For example, if you purchase a storage plan of 100 GB, you are entitled to a fixed quota of 100 GB per hour to offset the storage usage of cold data archiving.
Region | Offset factor | Storage usage offset by using a 1-GB storage plan |
Regions in the Chinese mainland | 0.045 | 1/0.045 = 22.22 GB |
China (Hong Kong) and regions outside China | 0.045 | 1/0.045 = 22.22 GB |
Example: Use a storage plan to offset the cold data archiving storage usage of clusters.
Your Alibaba Cloud account has a storage plan of 50 GB and the following PolarDB clusters:
Cluster Name | Edition | Hot standby storage cluster enabled | Cold data archiving enabled | Billing method (compute nodes) | Storage type | Storage billing method | Cluster storage usage | Storage usage of archived cold data |
A | Cluster Edition | Yes | Yes | Subscription | PSL5 | Subscription | 2.76 GB (subscribed amount: 50.00 GB) | 0 GB |
B | Cluster Edition | No | No | Subscription | PSL5 | Pay-as-you-go | 3 GB | No |
C | Cluster Edition | No | Yes | Pay-as-you-go | PSL5 | Pay-as-you-go | 97 GB | 110 GB |
E | Standard Edition | No | No | Subscription | PL1 ESSD | Subscription | 2.38 GB (subscribed amount: 100.00 GB) | 0 GB |
50 50-GB storage plan automatically offsets the storage usage of the clusters:
The cold data archiving feature is enabled for Cluster A, but no cold data has been archived. As a result, the current amount of archived cold data remains at 0 MB. Therefore, the storage capacity of the storage plan remains unused.
The cold data archiving feature is disabled for Cluster B. No cold data is archived. Therefore, the storage capacity of the storage plan remains unused.
Cluster C has an archived cold data storage usage of 110 GB. An offset ratio of 0.045 is applied to the archived cold data storage usage. As a result, 4.95 GB (calculated as 110 GB × 0.045) of the storage plan is used to offset the archived cold data storage usage of the cluster. Then, the storage plan has a remaining capacity of 45.05 GB (calculated as 50 GB - 4.95 GB).
Cluster E does not support the cold data archiving feature. No cold data is archived. Therefore, the storage capacity of the storage plan remains unchanged.
To sum up, a total of 4.95 GB of the storage plan is used to offset the archived cold data storage usage of the clusters. The storage plan has a remaining capacity of 45.05 GB (calculated as 50 GB - 4.95 GB).
This example describes only how a storage plan offsets the archived cold data storage usage of the PolarDB clusters. Other types of storage usage, such as the cluster storage usage, storage usage of level-1 backups/data backups, level-2 backups, and log backups, are not included in this example.
More
For more information about storage plans, see Storage plans.