Learn about billing methods, billable items, and pricing for Alibaba Cloud SelectDB Serverless.
Billing overview
ApsaraDB for SelectDB Serverless has three independently billed items. You can select a billing method for each.
total cost = compute resources cost + storage resources cost + cache space cost
Billing methods
ApsaraDB for SelectDB Serverless supports two billing methods: pay-as-you-go and resource plan.
-
Pay-as-you-go: Billed by actual usage, metered per second and settled hourly. Ideal for workloads with spiky traffic or unpredictable usage.
-
Resource plan: Prepurchase resources at a unit price lower than pay-as-you-go. Plans apply across all regions, with deductions calculated at the pay-as-you-go rate of the consuming region. Ideal for stable workloads or long-term usage.
Resource plan type
Offset rules
compute resource plan
Total-usage offset. After you purchase a compute resource plan, it offsets your pay-as-you-go usage.
cache resource plan
Hourly-capacity offset. The plan offsets the corresponding storage and cache capacity each hour throughout its validity period.
storage resource plan
Pricing
Serverless compute unit (SCU)
The minimum purchase for a one-month computing resource package is 3,000 SCU*hour.
|
Region |
Serverless price (CNY/SCU-hour) |
Resource package price (CNY/SCU-hour) |
Package deduction factor |
|
China (Zhangjiakou) |
0.3283 |
0.30663 |
0.700003 |
|
China (Hohhot) |
0.4221 |
0.30663 |
0.900003 |
|
China (Ulanqab) |
0.4221 |
0.30663 |
0.900003 |
|
China (Heyuan) |
0.4221 |
0.30663 |
0.900003 |
|
China (Chengdu) |
0.4221 |
0.30663 |
0.900003 |
|
China (Shenzhen) |
0.4690 |
0.30663 |
1 |
|
China (Hangzhou) |
0.4690 |
0.30663 |
1 |
|
China (Qingdao) |
0.4690 |
0.30663 |
1 |
|
China (Guangzhou) |
0.4690 |
0.30663 |
1 |
|
China (Beijing) |
0.4690 |
0.30663 |
1 |
|
China (Shanghai) |
0.4690 |
0.30663 |
1 |
|
Mexico (Mexico City) |
0.5236 |
0.30663 |
1.116379 |
|
Heyuan Dedicated Cloud for Automotive Compliance |
0.5487 |
0.30663 |
1.170011 |
|
US (Silicon Valley) |
0.5879 |
0.30663 |
1.253539 |
|
US (Virginia) |
0.5879 |
0.30663 |
1.253539 |
|
Philippines (Manila) |
0.6765 |
0.30663 |
1.442439 |
|
Malaysia (Kuala Lumpur) |
0.7141 |
0.30663 |
1.522576 |
|
South Korea (Seoul) |
0.7141 |
0.30663 |
1.522576 |
|
Thailand (Bangkok) |
0.7141 |
0.30663 |
1.522576 |
|
Indonesia (Jakarta) |
0.7517 |
0.30663 |
1.602706 |
|
UK (London) |
0.7517 |
0.30663 |
1.602706 |
|
Singapore |
0.7517 |
0.30663 |
1.602706 |
|
Germany (Frankfurt) |
0.7902 |
0.30663 |
1.684834 |
|
China (Hong Kong) |
0.8192 |
0.30663 |
1.746667 |
|
Japan (Tokyo) |
0.8288 |
0.30663 |
1.767248 |
Resource package deduction examples
Example 1: Cost reduction
Purchasing a Serverless compute resource package reduces your costs.
-
Serverless compute resource packages are shared across regions. You only need to purchase one to offset charges in all supported regions.
-
The following calculations assume you have purchased a resource package at a unit price of CNY 0.30663/SCU*H.
Scenario
You have a Serverless application in the China (Zhangjiakou) region. This application consumes an average of 100 SCU of compute resources over one hour, for a total consumption of 100 SCU*H. The costs for this usage are calculated as follows:
-
With pay-as-you-go, your cost is CNY 32.83 = 100 SCU*H × CNY 0.3283/SCU*H.
(CNY 0.3283/SCU*H is the pay-as-you-go rate for the China (Zhangjiakou) region.)
-
When using a resource package, the deduction is calculated as follows:
-
Calculate the deduction amount: Because the deduction factor for this region is 0.700003, the amount deducted from your resource package is 70.0003 SCU*H = 100 SCU*H (actual usage) × 0.700003 (deduction factor).
-
Calculate the deducted cost: The cost covered by the resource package is CNY 21.46 = 70.0003 SCU*H (deducted amount) × CNY 0.30663/SCU*H (resource package unit price).
-
Conclusion
Although your application consumed 100 SCU*H of resources, only about 70 SCU*H was deducted from your resource package. Using the resource package instead of pay-as-you-go saves you CNY 11.37 (CNY 32.83 - CNY 21.46), a cost saving of nearly 35%.
Example 2: Cross-region deductions
A shared Serverless compute resource package offsets consumption across multiple regions.
Scenario:
Your account has the following resources:
-
A shared Serverless compute resource package with a capacity of 5,000 SCU*H.
-
An application in the China (Zhangjiakou) region.
-
An application in the China (Heyuan) region.
-
An application in the China (Chengdu) region.
The following table shows the compute resource usage for each application over one hour and the corresponding deduction from the resource package.
|
Region and application |
Compute resource usage |
Deduction (SCU*H) |
|
China (Zhangjiakou) |
Sustained usage of 200 SCU for 1 hour. |
200 SCU × 1H × 0.700003 = 140.0006 |
|
China (Heyuan) |
300 SCU for the first 30 minutes, |
(300 SCU × 0.5H + 150 SCU × 0.5H) × 0.900003 |
|
China (Chengdu) |
Sustained usage of 100 SCU for 1 hour. |
100 SCU × 1H × 0.900003 = 90.0003 |
Conclusion:
The total amount deducted from the resource package for the hour is the sum of the deductions from each application: 140.0006 (Zhangjiakou) + 202.5007 (Heyuan) + 90.0003 (Chengdu) = 432.5016 SCU*H.
The remaining capacity of the resource package is: 5,000 SCU*H - 432.5016 SCU*H = 4567.4984 SCU*H.
Resource pack deduction examples
Example 1: Cost savings with a resource pack
-
Serverless computing resource packs are universal. A single pack offsets charges in all supported regions.
-
This calculation assumes a resource pack with a unit price of $0.04750625/SCU*H.
Scenario
A Serverless application in the Germany (Frankfurt) region consumes 100 SCU*H of computing resources over one hour. The costs for this usage under different billing methods are as follows:
-
With pay-as-you-go, your cost is $11.344 = 100 SCU*H × $0.113440/SCU*H.
($0.113440/SCU*H is the pay-as-you-go price for the Germany (Frankfurt) region.)
-
Using a resource pack, the calculation is as follows:
-
Calculate the deduction amount: With a deduction factor of 1.563 for this region, the amount deducted from your resource pack is 156.3 SCU*H = 100 SCU*H (actual usage) × 1.563 (deduction factor).
-
Calculate the cost of the deduction: The cost of the deducted amount is $7.4253 = 156.3 SCU*H (deduction amount) × $0.04750625/SCU*H (resource pack unit price).
-
Conclusion
This analysis shows that while your application's actual usage is 100 SCU*H, the deduction factor results in a 156.3 SCU*H deduction from your resource pack. Despite this, the low unit price of the resource pack means you still save $3.9187 ($11.344 - $7.4253) compared to the pay-as-you-go method. This is a cost saving of nearly 34.5%.
Example 2: Cross-region deductions
A universal Serverless computing resource pack offsets consumption across multiple regions.
Scenario
Your account has the following resources:
-
A universal Serverless computing resource pack with a capacity of 10,000 SCU*H.
-
An instance in the Malaysia (Kuala Lumpur) region.
-
An instance in the Germany (Frankfurt) region.
-
An instance in the Philippines (Manila) region.
The following table shows each application's resource usage over one hour and the corresponding deduction from the resource pack.
|
Region and application |
Computing resource usage |
Deduction amount (SCU*H) |
|
Malaysia (Kuala Lumpur) |
Consumes 50 SCU for 1 hour. |
50 SCU × 1H × 1.412 = 70.6 |
|
Germany (Frankfurt) |
Consumes 80 SCU for 1 hour. |
80 SCU × 1H × 1.563 = 125.04 |
|
Philippines (Manila) |
120 SCU for the first 30 minutes, |
(120 SCU×0.5H + 60 SCU×0.5H) × 1.338 |
Conclusion
The total deduction amount for the hour is the sum of the deductions for each application: 70.6 (Kuala Lumpur) + 125.04 (Frankfurt) + 120.42 (Manila) = 316.06 SCU*H.
The remaining capacity of the resource pack is: 10,000 SCU*H - 316.06 SCU*H = 9683.94 SCU*H.
Cache storage
|
Region |
Serverless price (CNY/ GB *hour) |
Cache resource package (CNY/GB*hour) |
Deduction factor |
|
Mexico (Queretaro) |
0.0020664 |
0.0013 |
0.984 |
|
China (Qingdao) |
0.0021 |
0.0013 |
1 |
|
China (Shanghai) |
0.0021 |
0.0013 |
1 |
|
China (Hohhot) |
0.0021 |
0.0013 |
1 |
|
China (Beijing) |
0.0021 |
0.0013 |
1 |
|
China (Guangzhou) |
0.0021 |
0.0013 |
1 |
|
China (Shenzhen) |
0.0021 |
0.0013 |
1 |
|
China (Heyuan) |
0.0021 |
0.0013 |
1 |
|
China (Ulanqab) |
0.0021 |
0.0013 |
1 |
|
China (Zhangjiakou) |
0.0021 |
0.0013 |
1 |
|
China (Chengdu) |
0.0021 |
0.0013 |
1 |
|
China (Hangzhou) |
0.0021 |
0.0013 |
1 |
|
Korea (Seoul) |
0.003024 |
0.0013 |
1.44 |
|
US (Virginia) |
0.003192 |
0.0013 |
1.52 |
|
Philippines (Manila) |
0.003192 |
0.0013 |
1.52 |
|
US (Silicon Valley) |
0.003192 |
0.0013 |
1.52 |
|
Thailand (Bangkok) |
0.003192 |
0.0013 |
1.52 |
|
Indonesia (Jakarta) |
0.003192 |
0.0013 |
1.52 |
|
Singapore |
0.003192 |
0.0013 |
1.52 |
|
Malaysia (Kuala Lumpur) |
0.003192 |
0.0013 |
1.52 |
|
China (Hong Kong) |
0.003192 |
0.0013 |
1.52 |
|
UK (London) |
0.003402 |
0.0013 |
1.62 |
|
Germany (Frankfurt) |
0.003402 |
0.0013 |
1.62 |
|
Japan (Tokyo) |
0.00378 |
0.0013 |
1.8 |
|
Heyuan Dedicated Cloud for Automotive Compliance |
0.0041496 |
0.0013 |
1.976 |
Cache resource package deductions are similar to storage resource packages, as illustrated in the storage deduction examples below.
Storage resource
|
Billing method |
Pricing (CNY/GB*hour) |
Description |
|
Pay-as-you-go - single availability zone |
0.0003 |
- |
|
Storage resource pack - single availability zone |
0.00017 |
Approx. CNY 0.12/GB/month |
|
Pay-as-you-go - multiple availability zones |
0.000375 |
- |
|
Storage resource pack - multiple availability zones |
0.00020 |
Approx. CNY 0.15/GB/month |
Storage resource pack deduction factor
Region | Storage type | Offset factor | Deducted amount (for 100 GB usage) |
China (Hangzhou), China (Shanghai), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), and China (Chengdu) | Standard (LRS) | 1 | 100.000 GB (=100 GB × 1) |
US (Virginia) | Standard (LRS) | 1.05 | 105.000 GB (=100 GB × 1.05) |
Malaysia (Kuala Lumpur), Philippines (Manila), Thailand (Bangkok), and South Korea (Seoul) | Standard (LRS) | 1.083 | 108.300 GB (=100 GB × 1.083) |
China (Hong Kong), Singapore, Indonesia (Jakarta), US (Silicon Valley), Germany (Frankfurt), UK (London), and Mexico | Standard (LRS) | 1.133 | 113.300 GB (=100 GB × 1.133) |
Japan (Tokyo) | Standard (LRS) | 1.183 | 118.300 GB (=100 GB × 1.183) |
Storage resource pack deduction examples
Storage plan capacity equals storage usage
You purchase a 1-month storage plan with 200 GB of capacity. All your ApsaraDB for SelectDB instances are in the China (Hangzhou) region, and your total storage usage is consistently 200 GB per hour. The storage plan's capacity is fully used, with no excess usage. Therefore, the storage fee for the month is
CNY 0.12/GB/month × 200 GB × 1 month + CNY 0.00 = CNY 24.00. Compared to using only the pay-as-you-go model, you saveCNY 0.0003/GB/hour × 200 GB × 24 hours × 30 days - CNY 24.00 = CNY 19.20.Storage plan capacity is greater than storage usage
You purchase a 1-month storage plan with 400 GB of capacity. You have one ApsaraDB for SelectDB instance in the China (Hangzhou) region with a consistent usage of 100 GB/hour, one in the Singapore region with 100 GB/hour, and one in the Japan (Tokyo) region with 100 GB/hour. The total amount deducted from the storage plan is
100 GB × 1 + 100 GB × 1.133 + 100 GB × 1.183 = 331.6 GB. There is no excess usage. Therefore, the storage fee for the month isCNY 0.12/GB/month × 400 GB × 1 month + CNY 0.00 = CNY 48.00. Compared to using only the pay-as-you-go model, you saveCNY 0.0003/GB/hour × (100 GB + 100 GB + 100 GB) × 24 hours × 30 days - CNY 48.00 = CNY 16.80.Storage plan capacity is less than storage usage
You purchase a 1-month storage plan with 300 GB of capacity. You have one ApsaraDB for SelectDB instance in the China (Hangzhou) region with a consistent usage of 150 GB/hour, one in the Singapore region with 100 GB/hour, and one in the Japan (Tokyo) region with 100 GB/hour. After the storage plan's capacity is fully used, there is an excess usage of
100 GB - (300 GB - 150 GB × 1 - 100 GB × 1.133) / 1.183 = 69 GB(rounded) from the Japan (Tokyo) region, which is billed as pay-as-you-go. Therefore, the storage fee for the month isCNY 0.12/GB/month × 300 GB × 1 month + CNY 0.0003/GB/hour × 69 GB × 24 hours × 30 days = CNY 50.90. Compared to using only the pay-as-you-go model, you saveCNY 0.0003/GB/hour × (150 GB + 100 GB + 100 GB) × 24 hours × 30 days - CNY 50.90 = CNY 24.70.
Storage resource pack deduction examples
Storage plan capacity equals storage usage
You purchase a 1-month storage plan with 200 GB of capacity. All your ApsaraDB for SelectDB instances are in the China (Hangzhou) region, and your total storage usage is consistently 200 GB per hour. The storage plan's capacity is fully used, with no excess usage. Therefore, the storage fee for the month is
USD 0.0173/GB/month × 200 GB × 1 month + USD 0.00 = USD 3.46. Compared to using only the pay-as-you-go model, you saveUSD 0.000043/GB/hour × 200 GB × 24 hours × 30 days - USD 3.46 = USD 2.732.Storage plan capacity is greater than storage usage
You purchase a 1-month storage plan with 400 GB of capacity. You have one ApsaraDB for SelectDB instance in the US (Virginia) region with a consistent usage of 100 GB/hour, one in the Singapore region with 100 GB/hour, and one in the China (Hangzhou) region with 100 GB/hour. The total amount deducted from the storage plan is
100 GB × 0.92 + 100 GB × 0.98 + 100 GB × 1 = 290 GB. There is no excess usage. Therefore, the storage fee for the month isUSD 0.0173/GB/month × 400 GB × 1 month + USD 0.00 = USD 6.92. Compared to using only the pay-as-you-go model, you save(USD 0.000038/GB/hour × 100 GB + USD 0.000038/GB/hour × 100 GB + USD 0.000043/GB/hour × 100 GB) × 24 hours × 30 days - USD 6.92 = USD 1.648.Storage plan capacity is less than storage usage
You purchase a 1-month storage plan with 300 GB of capacity. You have one ApsaraDB for SelectDB instance in the US (Virginia) region with a consistent usage of 150 GB/hour, one in the Singapore region with 100 GB/hour, and one in the China (Hangzhou) region with 100 GB/hour. After the storage plan's capacity is fully used, there is an excess usage of
100 GB - (300 GB - 150 GB × 0.92 - 100 GB × 0.98) / 1 = 36 GBfrom the China (Hangzhou) region, which is billed as pay-as-you-go. Therefore, the storage fee for the month isUSD 0.0173/GB/month × 300 GB × 1 month + USD 0.000043/GB/hour × 36 GB × 24 hours × 30 days = USD 6.30 (rounded). Compared to using only the pay-as-you-go model, you save(USD 0.000038/GB/hour × 150 GB + USD 0.000038/GB/hour × 100 GB + USD 0.000043/GB/hour × 100 GB) × 24 hours × 30 days - USD 6.30 = USD 3.636.