Control plane resource management
SR Linux allows you to set thresholds for monitoring the following control plane resources:
mpls-next-hops
tunnels
This refers to all tunnels (MPLS, IP-in-IP, GRE, VXLAN).originating-ip-in-ip-tunnels
originating-ip-gre-tunnels
vp-lag-groups
protect-groups
For each of these resources, you can specify an upper-threshold-set
value (a percentage from 0-100) and an upper-threshold-clear
value (a
percentage from 0-100); these values apply system-wide.
-
The
upper-threshold-set
value sets the threshold that triggers the generation of a WARNING log and the setting ofused-upper-threshold-exceeded
totrue
whenever the utilization of the resource reaches this value in a rising direction. -
The
upper-threshold-clear
value sets the threshold that triggers the generation of a NOTICE log and the setting ofused-upper-threshold-exceeded
tofalse
whenever the utilization of the resource reaches this value in a falling direction.
Configuring thresholds for control plane resources
upper-threshold-set
and
upper-threshold-clear
parameters for the resource you want to
monitor.Configure thresholds for a system resource
The following example configures thresholds for a system resource.
--{ * candidate shared default }--[ ]--
# info system utilization
system {
utilization {
resource ip-gre-tunnels {
}
resource tunnels {
upper-threshold-set 75
upper-threshold-clear 60
}
}
}
Display resource thresholds and statistics
The following example displays the current thresholds and statistics for each resource.
--{ + running }--[ ]--
# info from state system utilization resource *
system {
utilization {
resource ip-gre-tunnels {
upper-threshold-set 75
upper-threshold-clear 60
used-percent 0
used-entries 0
free-entries 2048
used-upper-threshold-exceeded false
}
resource ip-in-ip-tunnels {
upper-threshold-set 90
upper-threshold-clear 70
used-percent 0
used-entries 0
free-entries 4096
used-upper-threshold-exceeded false
}
resource mpls-next-hops {
upper-threshold-set 90
upper-threshold-clear 70
used-percent 0
used-entries 0
free-entries 65536
used-upper-threshold-exceeded false
}
resource protect-groups {
upper-threshold-set 90
upper-threshold-clear 70
used-percent 0
used-entries 0
free-entries 4096
used-upper-threshold-exceeded false
}
resource tunnels {
upper-threshold-set 90
upper-threshold-clear 70
used-percent 0
used-entries 0
free-entries 16000
used-upper-threshold-exceeded false
}
}
}