< 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.

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. The default value is 30.

byinfoid infoid

Specifies the log ID in hexadecimal notation.

The value is a string of 8 characters. The value is in hexadecimal notation, and the valid characters include 0-9, a-f, and A-F.

bymodule-alias modname

Specifies the name of the module.

The value is a string of 1 to 24 characters without spaces.

bymodule-alias alias

Specifies the name of the mnemonic.

The value is a string of 1 to 64 characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

The info-center rate-limit threshold command is used to set the maximum number of logs with the same log ID that the information center can process every second. Rules that the information center complies with when monitoring logs are as follows:
  1. Monitoring the number of logs that are generated every second with the same log ID. When the number of logs that are generated every second with the same log ID exceeds the threshold during the monitoring period, the information center decides that too many logs are generated and suppresses its log processing rate.
  2. Stopping suppressing the log processing rate when the number logs that are generated every second with the same log ID remains below the threshold for five monitoring periods.
By default, the information center processes a maximum of 30logs with the same log ID in every second. In certain application scenarios, the information center is required to process a maximum of more than 30 logs with the same log ID in every second. You can set thresholds for logs with different log IDs.
  • 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.

By default, the information center processes a maximum of 30 logs in a minute.

Example

# Set the maximum number of logs that the information center can process every second to 60.

<sysname> system-view
[sysname] info-center rate-limit threshold 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >