If the queries per second (QPS) of your service is stable in most cases and QPS spikes occur only in specific scenarios, such as large-scale promotions and release of services, you can set the clean QPS to a value that can meet your daily business requirements when you purchase an Anti-DDoS Proxy instance. Then, you can enable the burstable QPS feature to prevent packet loss or rate limiting caused by QPS spikes. This topic describes the billing of the QPS feature that is provided by Anti-DDoS Proxy.
Scenarios
After you add services to your Anti-DDoS Proxy instance, the peak service QPS may exceed the clean QPS that you select when you purchase the instance. In this case, random packet loss occurs during service traffic forwarding. If the peak service QPS remains higher than the clean QPS for a long period of time, rate limiting is triggered, and access to your services is affected. The following list describes the scenarios in which the peak service QPS exceeds the clean QPS and provides solutions for the scenarios:
The clean QPS of your instance cannot meet your business requirements, and you want to upgrade the instance to increase the clean QPS. For more information, see Upgrade an instance.
The clean QPS of your instance can meet your daily business requirements but cannot meet the requirements to handle QPS spikes. In this case, we recommend that you enable the burstable QPS feature. Examples include the following:
Holiday promotions such as Black Friday.
Release of services, such as launch of a new gaming server or new product.
Sharp increase in the number of access requests to websites, such as access requests to online course selection systems and government lottery systems within a specific period of time
With the burstable QPS feature enabled, if your service QPS exceeds the clean QPS but stays below the burstable QPS, the Anti-DDoS Proxy instance will handle the traffic normally with pay-as-you-go charges. If your service QPS remains within the clean QPS, no additional charges apply.
If you want to perform proof of concept (POC) tests, we recommend that you do not enable the burstable QPS feature. If you enable the burstable QPS feature, you are charged for the feature on a pay-as-you-go basis.
Limits
After enabled, the burstable QPS can be up to three times the clean QPS, but cannot exceed the following limits. If your clean QPS already exceeds these limits, burstable QPS cannot be enabled:
Anti-DDoS Proxy (Chinese Mainland): Burstable QPS for instances using IPv4 addresses is capped at 300,000. Instances using IPv6 addresses do not support burstable QPS.
Anti-DDoS Proxy (Outside Chinese Mainland): Burstable QPS is capped at 150,000.
Supported instances
Anti-DDoS Proxy (Chinese Mainland): Profession and Advanced mitigation plans.
NoteOnly instances using IPv4 addresses support the burstable QPS feature. Instances using IPv6 addresses do not support the feature.
Anti-DDoS Proxy (Outside Chinese Mainland): Insurance, Unlimited, Secure Chinese Mainland Acceleration (Sec-CMA), and Sec-CMA (Basic) mitigation plans.
Mappings between burstable QPS and connections
QPS | Number of new connections | Number of concurrent connections |
0 < QPS ≤ 5,000 | 5,000 | 100,000 |
5,000 < QPS ≤ 10,000 | 10,000 | 200,000 |
10,000 < QPS ≤ 30,000 | 30,000 | 500,000 |
30,000 < QPS ≤ 50,000 | 50,000 | 1,000,000 |
50,000 < QPS ≤ 100,000 | 80,000 | 1,500,000 |
100,000 < QPS ≤ 150,000 | 100,000 | 2,000,000 |
150,000 < QPS ≤ 200,000 Note Only supported by Anti-DDoS Proxy (Chinese Mainland). | 150,000 | 3,000,000 |
200,000 < QPS ≤ 300,000 Note Only supported by Anti-DDoS Proxy (Chinese Mainland). | 200,000 | 4,000,000 |
Billing methods
The burstable QPS feature takes effect immediately after you enable the feature.
The burstable QPS feature uses the pay-as-you-go billing method. You can use the metering method of the daily 95th percentile bandwidth or the monthly 95th percentile bandwidth for the feature. You can switch between the metering methods. The new metering method takes effect from 00:00 on the first day of the next month.
Item | Daily 95th percentile | Monthly 95th percentile |
Billing cycle | Charged on a calendar day. Important If you enable the burstable QPS feature for the first time on Day T in a calendar month and select the daily 95th percentile metering method, you are not charged for the usage on Day T. Charges start from Day T+1, and the bill is generated on Day T+2. | Charged on a calendar month. |
Billing conditions | If the 95th percentile QPS on a calendar day is greater than the clean QPS of your instance, the burstable QPS feature is used. How to calculate the daily 95th percentile QPS: Collect the service QPS values of your instance every 5 minutes on a calendar day. On a calendar day, 288 QPS values can be collected. Exclude the QPS values that are collected during DDoS attacks. Then, sort the remaining QPS values in descending order and exclude the top 5 QPS values. The largest QPS value among the remaining QPS values is used as the daily 95th percentile QPS. | If the 95th percentile QPS of a calendar month is greater than the clean QPS of your instance, the burstable QPS feature is used. You are charged for the burstable QPS that is used on the calendar month. The following list describes how to calculate the monthly 95th percentile QPS:
|
Unit price | USD 0.13 per QPS per day | USD 1.8 per QPS per month |
Billing formula | Fee of the burstable QPS = Metered usage for the daily 95th percentile QPS × Unit price for the daily 95th percentile QPS. Metered usage for the daily 95th percentile QPS = min (Daily 95th percentile QPS, Burstable QPS) - Clean QPS. Important If the daily 95th percentile QPS exceeds the burstable QPS, the service may be throttled. We recommend upgrading the clean QPS of your instance at the earliest opportunity. | Fee of the burstable QPS = Metered usage for the monthly 95th percentile QPS × Effective factor × Unit price for the monthly 95th percentile QPS (USD/month/QPS).
|
Limits |
|
|
How to enable the burstable QPS feature
You can activate the burstable QPS feature during the purchase of an Anti-DDoS Proxy instance by selecting the 95th percentile burstable QPS mode on the purchase page. For more information, see Purchase an Anti-DDoS Proxy instance.
If you do not enable the burstable QPS feature when you purchase an instance, you can go to the Instances page of the Anti-DDoS Proxy console to enable the feature. For more information, see Configure the burstable QPS of an instance.
Bill generation and settlement time
You can query and confirm the billing details of the feature on the System Logs page. For more information, see Query system logs.
Metering method | Bill generation time | Settlement time |
Daily 95th percentile | The bill for the burstable QPS that is used in a calendar day is displayed on the System Logs page at 10:00 on the next day, and Alibaba Cloud sends notifications to the contacts of your Alibaba Cloud account by email. | At 16:00 on the next day the burstable QPS is used, Alibaba Cloud deducts the fee of the burstable QPS feature from your account balance. |
Monthly 95th percentile | The bill for the burstable QPS that is used in a calendar month is displayed on the System Logs page at 11:00 on the first day of the next month, and Alibaba Cloud sends notifications to the contacts of your Alibaba Cloud account by email. | At 11:00 on the third day of the next month, Alibaba Cloud deducts the fee of the burstable QPS feature from your account balance. |
Billing example
For instance, if you enable the burstable QPS feature from March 1 to March 6 using the monthly 95th percentile metering method, the statistics chart will reflect the QPS trend for that period. The clean QPS is 3000, and the burstable QPS is 9000.
The statistics chart only shows data for the duration when the burstable QPS feature is active.
Fee of the burstable QPS = Metered usage for the monthly 95th percentile QPS × Effective factor × Unit price for the monthly 95th percentile QPS (unit: USD per QPS per month)
Determine the metered usage for the monthly 95th percentile QPS
For this billing cycle, the average of the top five daily peak QPS values is (10000 + 9000 + 9000 + 6000 + 6000) ÷ 5 = 8000.
The metered usage for the monthly 95th percentile QPS = 8000 - 3000 (the clean QPS on the last day of the calendar month when the burstable QPS feature is active) = 5000.
Calculate the effective factor
Effective factor = 6 (number of valid days in the calendar month) ÷ 31 (total days in the calendar month) = 0.19354839
Identify the unit price for the burstable QPS
The unit price for the monthly 95th percentile metering method is 1.8 USD per month per QPS.
Therefore, the charge for your burstable QPS is 5000 × 0.19354839 × 1.8 = 1,741.9355 USD.