ApsaraDB for SelectDB charges for three independent resources: compute, cache, and storage. Compute and cache support subscription and pay-as-you-go billing. Storage is always pay-as-you-go.
Both inbound and outbound Internet traffic are free of charge when you connect to an instance through a public endpoint. For more information, see Request and release a public endpoint.
Billable items
| Billable item | Billing method | Billing formula |
|---|---|---|
| Compute resources | Subscription, Pay-as-you-go | Unit price × Number of CCUs × Duration |
| Cache | Subscription, Pay-as-you-go | Unit price × Cache size (GB) × Duration |
| Storage resources | Pay-as-you-go only | Unit price × Storage size (GB) × Duration |
Compute resources
A Compute Capacity Unit (CCU) is the billing unit for compute resources. One CCU equals 1 vCPU and 4 GB of memory. Instance performance scales linearly with the number of CCUs. The compute resource specification must be an integer multiple of 1 CCU.
Pricing by region
| Region | Pay-as-you-go (USD/CCU/hour) | Subscription (USD/CCU/month) |
|---|---|---|
| China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Shenzhen), China (Guangzhou) | 0.051850 | 24.876 |
| China (Hohhot), China (Ulanqab), China (Heyuan), China (Chengdu) | 0.046742 | 22.389 |
| China (Zhangjiakou) | 0.036218 | 17.414 |
| China (Hong Kong) | 0.076369 | 40.302 |
| Singapore, Indonesia (Jakarta) | 0.069170 | 36.980 |
| Malaysia (Kuala Lumpur), Thailand (Bangkok) | 0.065733 | 35.131 |
| Philippines (Manila) | 0.062296 | 33.282 |
| Japan (Tokyo) | 0.071571 | 40.777 |
| South Korea (Seoul) | 0.053847 | 35.131 |
| US (Silicon Valley), US (Virginia) | 0.055514 | 28.924 |
| UK (London) | 0.064368 | 36.980 |
| Germany (Frankfurt) | 0.066769 | 38.875 |
| Mexico | 0.05342 | 25.631 |
Region | Pay-as-you-go unit price (USD/CCU/hour) | Subscription unit price (USD/CCU/month) |
China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Shenzhen), and China (Guangzhou) | 0.051850 | 24.876 |
China (Hohhot), China (Ulanqab), China (Heyuan), China (Chengdu) | 0.046742 | 22.389 |
China (Zhangjiakou) | 0.036218 | 17.414 |
China (Hong Kong) | 0.076369 | 40.302 |
Singapore, Indonesia (Jakarta) | 0.069170 | 36.980 |
Malaysia (Kuala Lumpur), Thailand (Bangkok) | 0.065733 | 35.131 |
Philippines (Manila) | 0.062296 | 33.282 |
Japan (Tokyo) | 0.071571 | 40.777 |
South Korea (Seoul) | 0.053847 | 35.131 |
US (Silicon Valley), US (Virginia) | 0.055514 | 28.924 |
UK (London) | 0.064368 | 36.980 |
Germany (Frankfurt) | 0.066769 | 38.875 |
Mexico | 0.05342 | 25.631 |
Cache
The cache stores hot data to accelerate read and write operations. Available cache sizes depend on the selected compute resource specification.
Pricing by region
| Region | Pay-as-you-go (USD/GB/hour) | Subscription (USD/GB/month) |
|---|---|---|
| China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu) | 0.000319 | 0.153 |
| China (Hong Kong) | 0.000279 | 0.167 |
| Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Thailand (Bangkok), Japan (Tokyo), US (Silicon Valley) | 0.000253 | 0.152 |
| South Korea (Seoul) | 0.000241 | 0.144 |
| US (Virginia) | 0.000211 | 0.127 |
| UK (London) | 0.000245 | 0.147 |
| Germany (Frankfurt) | 0.000251 | 0.151 |
| Mexico | 0.000292 | 0.14 |
Region | Instance deployment architecture | Pay-as-you-go unit price (USD/GB/hour) |
China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu) | Single-zone (locally redundant storage) | 0.000043 |
Multi-zone (zone-redundant storage) | 0.00005375 | |
China (Hong Kong), Singapore, Indonesia (Jakarta), US (Virginia), UK (London), Germany (Frankfurt) | Single-zone (locally redundant storage) | 0.000038 |
Multi-zone (zone-redundant storage) | 0.0000475 | |
Malaysia (Kuala Lumpur) | Single-zone (locally redundant storage) | 0.000039 |
Multi-zone (zone-redundant storage) | 0.00004875 | |
Japan (Tokyo) | Single-zone (locally redundant storage) | 0.000036 |
Multi-zone (zone-redundant storage) | 0.000045 | |
South Korea (Seoul), Philippines (Manila), Thailand (Bangkok) | Single-zone (locally redundant storage) | 0.000037 |
Multi-zone (zone-redundant storage) | 0.00004625 | |
US (Silicon Valley) | Single-zone (locally redundant storage) | 0.000035 |
Multi-zone (zone-redundant storage) | 0.00004375 | |
Mexico | Single-zone (locally redundant storage) | 0.000042 |
Region | Pay-as-you-go unit price (USD/GB/hour) | Subscription unit price (USD/GB/month) |
China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu) | 0.000319 | 0.153 |
China (Hong Kong) | 0.000279 | 0.167 |
Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Thailand (Bangkok), Japan (Tokyo), US (Silicon Valley) | 0.000253 | 0.152 |
South Korea (Seoul) | 0.000241 | 0.144 |
US (Virginia) | 0.000211 | 0.127 |
UK (London) | 0.000245 | 0.147 |
Germany (Frankfurt) | 0.000251 | 0.151 |
Mexico | 0.000292 | 0.14 |
Storage resources
Storage resources hold your full dataset. Billing is pay-as-you-go, charged hourly based on actual usage.
Tip: A storage plan can reduce storage costs by approximately 45%. If your storage usage is predictable, purchase a storage plan to offset pay-as-you-go charges.
Pricing by region and deployment architecture
| Region | Instance deployment architecture | Pay-as-you-go (USD/GB/hour) |
|---|---|---|
| China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu) | Single-zone (locally redundant storage) | 0.000043 |
| China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu) | Multi-zone (zone-redundant storage) | 0.00005375 |
| China (Hong Kong), Singapore, Indonesia (Jakarta), US (Virginia), UK (London), Germany (Frankfurt) | Single-zone (locally redundant storage) | 0.000038 |
| China (Hong Kong), Singapore, Indonesia (Jakarta), US (Virginia), UK (London), Germany (Frankfurt) | Multi-zone (zone-redundant storage) | 0.0000475 |
| Malaysia (Kuala Lumpur) | Single-zone (locally redundant storage) | 0.000039 |
| Malaysia (Kuala Lumpur) | Multi-zone (zone-redundant storage) | 0.00004875 |
| Japan (Tokyo) | Single-zone (locally redundant storage) | 0.000036 |
| Japan (Tokyo) | Multi-zone (zone-redundant storage) | 0.000045 |
| South Korea (Seoul), Philippines (Manila), Thailand (Bangkok) | Single-zone (locally redundant storage) | 0.000037 |
| South Korea (Seoul), Philippines (Manila), Thailand (Bangkok) | Multi-zone (zone-redundant storage) | 0.00004625 |
| US (Silicon Valley) | Single-zone (locally redundant storage) | 0.000035 |
| US (Silicon Valley) | Multi-zone (zone-redundant storage) | 0.00004375 |
| Mexico | Single-zone (locally redundant storage) | 0.000042 |
Billing examples
The following examples show the total monthly and hourly cost for a typical instance in the Singapore region: 4 CCUs (4 vCPUs, 16 GB memory) and 200 GB of cache, with an average of 500 GB of data stored.
Subscription
| Billable item | Calculation | Fee |
|---|---|---|
| Compute resources | USD 36.980/CCU/month × 4 CCUs × 1 month | USD 147.92 |
| Cache | USD 0.152/GB/month × 200 GB × 1 month | USD 30.40 |
| Storage resources | USD 0.000038/GB/hour × 500 GB × 30 days × 24 hours | USD 13.68 |
| Total | USD 192.00 |
Pay-as-you-go
| Billable item | Calculation | Fee |
|---|---|---|
| Compute resources | USD 0.069170/CCU/hour × 4 CCUs × 1 hour | USD 0.277 |
| Cache | USD 0.000253/GB/hour × 200 GB × 1 hour | USD 0.051 |
| Storage resources | USD 0.000038/GB/hour × 500 GB × 1 hour | USD 0.019 |
| Total | USD 0.347 |
Billing examples
Subscription
Assume that you purchase a subscription instance in the Singapore region with 4 vCPUs and 16 GB of memory (4 CCUs) and 200 GB of cache. The subscription duration is one month. During this month, assume the instance stores an average of 500 GB of data. The total fee for the instance for one month is USD 192.00. The cost breakdown is as follows:
Compute resource fee: USD 36.980/CCU/month × 4 CCUs × 1 month = USD 147.92.
Cache fee: USD 0.152/GB/month × 200 GB × 1 month = USD 30.40.
Storage resource fee: USD 0.000038/GB/hour × 500 GB × 30 days × 24 hours = USD 13.68.
Pay-as-you-go
Assume that you purchase a pay-as-you-go instance in the Singapore region with 4 vCPUs and 16 GB of memory (4 CCUs) and 200 GB of cache. You use the instance for one hour. During this hour, assume the instance stores an average of 500 GB of data. The total fee for the instance for one hour is USD 0.347. The cost breakdown is as follows:
Compute resource fee: USD 0.069170/CCU/hour × 4 CCUs × 1 hour = USD 0.277.
Cache fee: USD 0.000253/GB/hour × 200 GB × 1 hour = USD 0.051.
Storage resource fee: USD 0.000038/GB/hour × 500 GB × 1 hour = USD 0.019.