Usage cap

更新时间:
复制 MD 格式

Prevents unexpected pay-as-you-go charges by capping site usage during traffic spikes. May affect service continuity — use with caution.

Enable usage cap

Note

Usage cap detection has a 10–15 minute latency.

  1. In the ESA console, choose Websites. In the Website column, click the target site.

  2. In the navigation pane on the left, choose Usage Cap.

  3. On the Usage Cap page, click Create Rule. Enter a Rule Name, and set the match conditions and Statistical Cycle.

    • Every 5 Minutes: A 5-minute time window.

    • Every Hour: A 1-hour time window.

    • Every Day: A calendar day (00:00–23:59).

    • Every Month: A calendar month (first to last day of the current month).

  4. Select an action and click OK.

    • Disable Website: When traffic reaches the threshold, the site is suspended and all acceleration, security, and computing services become unavailable. This affects your online business — use with caution. Set a threshold higher than your planned usage.

    • Delete DNS Records: When traffic reaches the threshold, a specific subdomain record is deleted. Use this option to avoid taking the site offline.

      Warning

      Deleting a subdomain record is irreversible. You must manually re-add the record and its configuration. Use with caution.

Note

When a usage cap rule suspends the site, you are notified via SMS, in-site messages, and email.

Manage usage cap

  1. In the ESA console, choose Websites. In the Website column, click the target site.

  2. In the navigation pane on the left, choose Usage Cap.

  3. On the Usage Cap page, you can Edit, Disable, Enable, or Delete a rule.

    Note

    Each site supports up to five rules. Disabled rules are not in effect.

Configuration example

Use case

A blog website sets a monthly traffic cap of 50 GB on its primary site to control costs.

Steps

  1. In the ESA console, choose Websites. In the Website column, click the target site.

  2. In the navigation pane on the left, choose Usage Cap.

  3. On the Usage Cap page, click Create Rule, and create a rule as follows:

    • Rule Name: my_rule

    • Metrics: Site Traffic Greater than 50 GB

    • Statistical Cycle: Monthly

    • Action: Disable Site

      image

Result

When monthly traffic exceeds 50 GB, the site is disabled.image