< Home

info-center rate-limit threshold

Function

The info-center rate-limit threshold command sets the maximum number of logs with the same log ID that the information center can process every second.

The undo info-center rate-limit threshold command restores the default setting.

By default, the information center processes a maximum of 30 logs with the same log ID in every second.

Format

info-center rate-limit threshold value [ byinfoid infoID | bymodule-alias modname alias ]

undo info-center rate-limit threshold [ value ] [ byinfoid infoID | bymodule-alias modname alias ]

Parameters

Parameter Description Value
value Specifies the maximum number of logs with the same log ID that the information center can process every second. The value is an integer that ranges from 1 to 500.
byinfoid infoID Specifies the log ID. The value is a 32-digit hexadecimal number in the format XXXXXXXX. It ranges from 0 to ffffffff.
bymodule-alias modname Specifies the log of the module name. The value is a string of 1 to 24 case-insensitive characters without spaces.
alias Specifies the log of the mnemonic name. The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the info-center rate-limit threshold command to set the maximum number of logs with the same log ID that the information center can process every second. The information center monitors the number of logs that are generated every second under the same log ID. When the number of logs that are generated every second under the same log ID exceeds the threshold in the monitoring period, the information center decides that too many logs are generated and suppresses its log processing rate by processing only the conforming traffic (logs within the threshold) and discarding the non-conforming traffic (logs exceeding the threshold). When the number of logs that are generated every second under the same log ID falls below the threshold and remains below the threshold for five monitoring periods, the information center removes the suppression.

By default, the information center processes a maximum of 30 logs with the same log ID in every second. In certain application scenarios, by default, the information center needs to process more than 50 logs with the same log ID in every second. You can set thresholds for logs with different log IDs. Generally, the default threshold is recommended.
  • If the threshold is too low, some logs may be discarded.
  • If the threshold is too high, the information center cannot identify the log ID under which too many logs are generated.
  • If the threshold value1 specified by the parameter byinfoid infoID or bymodule-alias modname alias differs from the threshold value0 specified globally, value1 takes effect.
  • During a software upgrade, if the threshold is configured in the old version, but the new version does not support the specified log module and alias, the threshold configuration of the specified log module and alias will be automatically cleared after the upgrade.

Example

# Set the maximum number of logs that the information center can process every second to 60.
<HUAWEI> system-view
[HUAWEI] info-center rate-limit threshold 60
# Set the maximum number of logs identified by the same module name and mnemonic that the information center can process every second to 30.
<HUAWEI> system-view
[HUAWEI] info-center rate-limit threshold 30 bymodule-alias AAA AUTHEN_ERR_EVENT
# Set the maximum number of logs with the same log ID that the information center can process every second to 20.
<HUAWEI> system-view
[HUAWEI] info-center rate-limit threshold 20 byinfoid ff011015
# Restore the maximum number of logs that the information center can process every second to the default value.
<HUAWEI> system-view
[HUAWEI] undo info-center rate-limit threshold
# Cancel the restriction on the maximum number of logs with a specified log ID that the information center can process every second.
<HUAWEI> system-view
[HUAWEI] undo info-center rate-limit threshold bymodule-alias AAA AUTHEN_ERR_EVENT
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >