All Products
Search
Document Center

Anti-DDoS:Billing of the burstable QPS feature

Last Updated:May 21, 2024

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.

Overview

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.

After you enable the burstable QPS feature, you are charged for the burstable QPS that is used when the peak service QPS exceeds the clean QPS of your instance.

Important

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.

Scenarios

We recommend that you enable the burstable QPS feature for your instance in the following scenarios:

  • 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

Supported instances

  • Anti-DDoS Proxy (Chinese Mainland): Profession and Advanced mitigation plans

  • Anti-DDoS Proxy (Outside Chinese Mainland): Insurance, Unlimited, Secure Chinese Mainland Acceleration (Sec-CMA), and Sec-CMA (Basic) mitigation plans

Supported burstable QPS and connections

  • The following section describes the supported burstable QPS and connections if the burstable QPS feature is enabled for an Anti-DDoS Proxy (Chinese Mainland) instance:

    • If the instance uses an IPv4 address, the burstable QPS for the instance is 300,000, the number of new connections 200,000, and the number of concurrent connections 4,000,000.

    • If the instance uses an IPv6 address, the burstable QPS for the instance is 150,000, the number of new connections 100,000, and the number of concurrent connections 2,000,000.

  • The following section describes the supported burstable QPS and connections if the burstable QPS feature is enabled for an Anti-DDoS Proxy (Outside Chinese Mainland) instance:

    The burstable QPS for the instance is 150,000, the number of new connections 100,000, and the number of concurrent connections 2,000,000.

Note

If your service requires higher specifications for new connections or concurrent connections, submit a

ticket to contact your account manager.

Metering methods

Important

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

Fee settlement methods

You are charged for the usage on a calendar day.

Important

If you enable the burstable QPS feature for the first time on Day T in a calendar month and you select the daily 95th percentile metering method, you are not charged for the usage of the burstable QPS on Day T. On Day T+1, you are charged for the usage of the burstable QPS. On Day T+2, the bill for the burstable QPS that is used on Day T+1 is generated.

You are charged for the usage on a calendar month.

How you are charged

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:

  1. Obtain the daily peak QPS: Collect the service QPS values of your instance every 5 minutes in a calendar day. In a calendar day, 288 QPS values can be collected. Exclude the QPS values that are collected during DDoS attacks. The largest QPS value among the remaining QPS values is used as the daily peak QPS.

  2. Calculate the monthly 95th percentile QPS: Sort the collected daily peak QPS values in a calendar month in descending order and calculate the average value of the top 5 daily peak QPS values. The average value is used as the monthly 95th percentile QPS.

Unit prices

USD 0.13 per QPS per day

USD 1.8 per QPS per month

Formula that is used to calculate fees

Fee of the burstable QPS = Metered usage for the daily 95th percentile QPS × Unit price when the daily 95th percentile metering method is used.

Metered usage for the daily 95th percentile QPS = Daily 95th percentile bandwidth or Burstable QPS, whichever is smaller - Clean QPS.

Note

For more information about the values of the burstable QPS, see Supported burstable QPS and connections.

In the following examples, an Anti-DDoS Proxy (Outside Chinese Mainland) instance is used, and the maximum burstable QPS of the instance is 150,000:

  • If the daily 95th percentile QPS is less than or equal to 150,000, the metered usage for the daily 95th percentile QPS is the daily 95th percentile QPS minus the clean QPS.

  • If the daily 95th percentile QPS is greater than 150,000, the metered usage for the daily 95th percentile QPS is 150,000 minus the clean QPS.

Important

If the daily 95th percentile QPS exceeds the burstable QPS, rate limiting may be triggered. We recommend that you increase 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 when the monthly 95th percentile metering method is used

(unit: USD per QPS per month)

  • Metered usage for the monthly 95th percentile QPS

    Use the smaller value between the monthly 95th percentile QPS and the burstable QPS to minus the clean QPS of the instance on the last day when the burstable QPS feature is enabled in a calendar month.

    Note

    For more information about the values of the burstable QPS, see Supported burstable QPS and connections.

    In the following examples, an Anti-DDoS Proxy (Outside Chinese Mainland) instance is used, and the burstable QPS of the instance is 150,000:

    • If the monthly 95th percentile QPS is less than or equal to 150,000, the metered usage for the monthly 95th percentile QPS is the monthly 95th percentile QPS minus the clean QPS of the instance on the last day when the burstable QPS feature is enabled in a calendar month.

    • If the monthly 95th percentile QPS is greater than 150,000, the metered usage for the monthly 95th percentile QPS is 150,000 minus the clean QPS of the instance on the last day when the burstable QPS feature is enabled in a calendar month.

  • Important

    If the monthly 95th percentile QPS exceeds the burstable QPS, rate limiting may be triggered. We recommend that you increase the clean QPS of your instance at the earliest opportunity.

  • Effective factor = Number of valid days in a calendar month/Total number of days in the calendar month.

    Important

    If you enable the burstable QPS feature for the first time on Day T in a calendar month and you select the monthly 95th percentile metering method, Day T is not included in the valid days of the feature.

    For example, you enabled the burstable QPS feature on July 15, 2023 and did not disable the feature in July. The number of valid days in the calendar month is 16 from July 16, 2023 to July 31, 2023. The total number of days in July 2023 is 31. The effective factor of the month is 0.51612903. This value is calculated based on the following formula: 16/31.

Limits

  • The metering method of the daily 95th percentile bandwidth can be disabled only once within a calendar month.

  • You cannot change the metering method on the last day of a calendar month.

  • The metering method of the monthly 95th percentile bandwidth can be disabled only once in a calendar month.

  • You cannot change the metering method on the last day of a calendar month.

How to enable the burstable QPS feature

Important

The following section describes the scenarios in which the burstable QPS feature is not supported:

  • An Anti-DDoS Proxy (Chinese Mainland) instance uses an IPv4 address and the clean QPS of the instance is greater than 300,000.

  • An Anti-DDoS Proxy (Chinese Mainland) instance uses an IPv6 address and the clean QPS of the instance is greater than 150,000.

  • The clean QPS of an Anti-DDoS Proxy (Outside Chinese Mainland) instance is greater than 150,000.

Bill generation time 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

The following example describes how to calculate fees of burstable QPS based on the monthly 95th percentile metering method:

You purchased an Anti-DDoS Proxy (Chinese Mainland) instance of the Profession mitigation plan in January 2023. The supported IP version is IPv4, the clean QPS is 200, the burstable QPS feature is enabled, and the monthly 95th percentile metering method is used. The figure shows Purchased Clean QPS, Burstable QPS, and Actual QPS for each day in March 2023. Purchased Clean QPS indicates the clean QPS of the instance. The figure displays only the data that is collected when the burstable QPS feature is enabled. The data that is collected when the burstable QPS feature is disabled is not displayed.

image..png

Fee of the burstable QPS = Metered usage for the monthly 95th percentile QPS × Effective factor × Unit price when the monthly 95th percentile metering method is used

(unit: USD per QPS per month)

  1. Calculate the metered usage for the monthly 95th percentile QPS.

    In this billing cycle, the top 5 daily peak QPS values are 10000, 9000, 9000, 6000, and 6000. The average value of the top 5 peak QPS values is 8000. The metered usage for the monthly 95th percentile QPS is 5000, which is calculated by 8000 minus 3000. The value 3000 is the clean QPS on the last day when the burstable QPS feature is enabled in the calendar month.

  2. Calculate the effective factor.

    Effective factor = Number of valid days in a calendar month/Total number of days in the calendar month. In this example, the effective factor is 0.19354839. The value is calculated based on the following formula: 6/31.

  3. View the unit price when the monthly 95th percentile metering method is used.

    When the monthly 95th percentile metering method is used, the unit price is

    USD 1.8 per QPS per month.

Therefore, your fee of the burstable QPS is USD 1,741.9355. The fee is calculated based on the following formula:

5,000 × 0.19354839 × 1.8.

References