OCF_PACEMAKER_IFSPEE(7)
πΈ NAME πΈ
okay so bestie, welcome to OCF_PACEMAKER_IFSPEE(7) β that's the pacemaker config corner of the manual, and today's main character is:
ocf_pacemaker_ifspeed β a Network interface speed monitor π
like, it literally watches how fast your NIC is going and reports it. iconic behaviour tbh.
β¨ SYNOPSIS β¨
here's the vibe check on how you actually call it:
[OCF_RESKEY_name=string] [OCF_RESKEY_iface=string]
[OCF_RESKEY_ip=string] [OCF_RESKEY_bridge_ports=string]
[OCF_RESKEY_weight_base=integer] [OCF_RESKEY_dampen=integer]
[OCF_RESKEY_debug=string]
ifspeed [start | stop | monitor | meta-data | validate-all |
reload-agent]
that's it, that's the whole mood π«Ά
π DESCRIPTION π
so. the agent's monitor action records the speed of a specified network interface as a node attribute. and then β plot twist β that attribute can be used in rules to prefer nodes based on network speeds β¨. literally routing with taste.
she can monitor physical interfaces, bonded interfaces, bridges, VLANs, or any combination thereof. versatility queen π. for example:
- *) Bridge on top of one 10Gbps interface (eth2) and 802.3ad bonding (bond0) built on two 1Gbps interfaces (eth0 and eth1).
- *) Active-backup bonding built on top of one physical interface and one VLAN on another interface.
for STP-enabled bridges, this agent tries to determine the network topology, and by default looks only on ports which are connected to an upstream switch. ngl that's kinda smart. this can be overridden by the 'bridge_ports' parameter, iykyk. active interfaces in this case are those in "forwarding" state π«.
for balancing bonded interfaces, this agent uses 80% of the sum of the speeds of underlying "up" ports π₯. and for non-balancing bonded interfaces ("active-backup" and probably "broadcast"), only the speed of the currently active port is considered. no cap, that's the whole rule π.
π SUPPORTED PARAMETERS π
OCF_RESKEY_name = string [ifspeed]
Attribute name β the name of the node attribute to set π·οΈ.
OCF_RESKEY_iface = string []
Network interface β if this is set, monitor this network interface, bestie. one of iface or ip must be set β οΈ (not optional, fr fr).
OCF_RESKEY_ip = string []
IPv4 or IPv6 address β if this is set instead of iface, monitor the interface that holds this IP address. the address may be specified in dotted-quad notation for IPv4 (for example, 192.168.1.1) or hexadecimal notation for IPv6 (for example, 2001:db8:DC28:0:0:FC57:D4C8:1FFF). and again: one of iface or ip must be set π.
OCF_RESKEY_bridge_ports = string [detect]
Bridge ports β if set and iface is a bridge, consider these bridge ports (by default, all ports which have designated_bridge=root_id) π.
OCF_RESKEY_weight_base = integer [1000]
Weight of 1Gbps β relative weight of 1Gbps in interface speed. can be used to tune how big attribute value will be π. dial that number till it feels right, babe.
OCF_RESKEY_dampen = integer [5]
Dampening interval β the time to wait (dampening) for further changes to occur β³. it's giving "chill, let it settle".
OCF_RESKEY_debug = string [false]
Verbose logging β log more verbosely. that's it. that's the whole description π«Ά (default is false, so she's quiet unless you ask).
π AUTHOR π
Andrew Beekhof <andrew@beekhof.net> β Author. shoutout to the legend, absolute icon π.
reminder bestie:start,stop,monitor,meta-data,validate-allandreload-agentare the actions in the synopsis β don't be out here inventing new ones π
and that's the page! π written for the Pacemaker Configuration manual, dated 09/17/2026 β go forth and monitor those interfaces, you gorgeous genius π¦ππ
π¦ where this page comes from
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms