The anti-ddos http-flood defend alert-rate command configures the threshold of the HTTP request packet rate that triggers global HTTP flood attack defense.
The undo anti-ddos http-flood defend alert-rate command restores the threshold to the default value (8000).
anti-ddos http-flood defend alert-rate alert-rate
undo anti-ddos http-flood defend alert-rate
| Parameter | Description | Value |
|---|---|---|
| alert-rate alert-rate | Specifies the threshold of the HTTP request packet rate that triggers global HTTP flood attack defense. | The value is an integer ranging from 1 to 80000000, in pps. The default value is 8000. |
The defense threshold can be manually configured or automatically learned. For details about the threshold learning configuration, see Configuring Threshold Learning.
# Set the threshold of HTTP request packet rate that triggers global HTTP flood attack defense to 5000 pps. In this case, when the HTTP request packet rate exceeds 5000 pps, the HTTP flood attack defense is triggered.
<sysname> system-view [sysname] anti-ddos http-flood defend alert-rate 5000