Prevents unexpected pay-as-you-go charges by capping site usage during traffic spikes. May affect service continuity — use with caution.
Enable usage cap
Usage cap detection has a 10–15 minute latency.
-
In the ESA console, choose Websites. In the Website column, click the target site.
-
In the navigation pane on the left, choose Usage Cap.
-
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).
-
-
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.
WarningDeleting a subdomain record is irreversible. You must manually re-add the record and its configuration. Use with caution.
-
When a usage cap rule suspends the site, you are notified via SMS, in-site messages, and email.
Manage usage cap
-
In the ESA console, choose Websites. In the Website column, click the target site.
-
In the navigation pane on the left, choose Usage Cap.
-
On the Usage Cap page, you can Edit, Disable, Enable, or Delete a rule.
NoteEach 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
-
In the ESA console, choose Websites. In the Website column, click the target site.
-
In the navigation pane on the left, choose Usage Cap.
-
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
-
Result
When monthly traffic exceeds 50 GB, the site is disabled.