The peer memory-priority command sets a priority that determines the disconnection order of each BGP peer relationship in a specified group if memory overload occurs.
The undo peer memory-priority command restores the default configuration.
By default, each BGP peer relationship in a peer group is disconnected based on the medium priority if memory overload occurs.
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
priority |
Specifies a priority that determines the disconnection order of each BGP peer relationship in a peer group if memory overload occurs. A lower priority indicates that the BGP peer relationships in the associated peer group are disconnected first. |
The value is an enumerated type, which can be:
|
Usage Scenario
If BGP consumes excessive memory resources and memory resources are exhausted, a board reset occurs. To prevent this issue, run the peer memory-priority command to set a priority that determines the disconnection order of each BGP peer relationship in a specified group upon memory overload. Memory overload in this case means that the system memory usage exceeds the alarm threshold and BGP's memory usage is excessively high. If this occurs, the BGP peer relationships in different groups are disconnected in the order of priorities set for these groups to release memory. A lower priority indicates that the BGP peers relationships in the associated peer group are disconnected first. It is recommended that the priority be set to high for an important BGP peer relationship to prevent the peer relationship from being disconnected immediately upon memory overload.
Precautions
If the peer memory-priority command has been run on the local device, the priority set for the peer still takes effect after the peer is added to a peer group regardless of the priority set for this group.
If the peer memory-priority command is not run on the local device, a peer uses the priority set for each member in a peer group after the peer is added to the peer group. The group-based priority setting is still effective for the peer after it is removed from the group.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna [*HUAWEI-bgp-instance-a-vpna] group ex external [*HUAWEI-bgp-instance-a-vpna] peer ex memory-priority high