Bandwidth Limit Configuration

Last updated: 2019-09-26 12:27:12

PDF

You can configure a bandwidth cap for a domain name. When the bandwidth consumed by the domain name exceeds the max bandwidth within a statistical cycle (5 minutes), according to your configuration, all access requests will be forwarded to the origin server or the CDN service will be disabled, and a 404 error will be returned to all access requests.

Configuration Guide

  1. Log in to the CDN Console, select Domain Management on the left sidebar, and click "Manage" on the right of the domain name to be edited.
  2. Click the Advanced Configuration tab and you can see the Capped Bandwidth Configuration module. This feature is disabled by default.
  3. Toggle the switch on to enable it. When enabled, the bandwidth cap is 10 Gbps by default. If the cap is reached, origin-pull will be performed. You can click the Edit icon to set the bandwidth cap and how user requests will be handled if the cap is exceeded.
  • If your purpose is to prevent fierce DDoS attacks, it is recommended to set this to "Return 404" to protect your origin server.
  • If your purpose is to control CDN service fees, it is recommended to set this to "Requests back to origin" to prevent your service from being affected.
  1. If the cap is exceeded, you will be notified by internal message, email or SMS. You can check the domain status in the CDN Console. No matter whether "Requests back to origin" or "Return 404" is set, the domain will be changed to Disabled status. It takes about 5 to 15 minutes for the settings to take effect.

    The domain will be closed once the bandwidth cap is reached. To continue using the CDN service, you can activate domain name acceleration again in the CDN Console. For more information, see Domain Name Operations.

Configuration Case

If the domain name www.test.com is configured as follows:

CDN will periodically detect the latest bandwidth statistics of the domain name. If it finds at 12:15:00 that the bandwidth value of the domain name at the time point of 12:05:00 (representing the data generated between 12:05:00 and 12:10:00) is above 1 Kbps which exceeds the set cap, it will deliver the configuration immediately to forward requests to the origin server. As the configuration is delivered to all CDN nodes in batches and takes effect node by node, the bandwidth will drop gradually and the configuration will take full effect on all nodes at around 12:20:00.