OCF_HEARTBEAT_NODEUT(7)

πŸ’… ocf_heartbeat_NodeUtilization β€” like, the manual page for ocf_heartbeat_NodeUtil(7) bestie ✨

okay so. gather round. this is the OCF_HEARTBEAT_NODEUT(7) page, section 7 of the manual, and it's literally all about the NodeUtilization resource agent. it's short, it's sweet, and it's gonna tell your cluster what it's working with. let's go πŸŽ€


🌸 NAME 🌸

ocf_heartbeat_NodeUtilization β€” Node Utilization, no cap. that's the whole name, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

NodeUtilization [start | stop | monitor | meta-data | validate-all]

those are your five actions, bestie. pick one. any one. (well, pick the right one, but you get it 🫢)


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the Node Utilization agent is like the friend who shows up to the group chat with receipts. it detects your system parameters β€” available CPU, host memory, and hypervisor memory availability β€” and then it adds them into the CIB for each node using crm_attribute. blessed behavior, honestly πŸ‘‘

here's the move: you run the agent as a clone resource so it goes and populates those parameters on each node. every node gets its own little data drop, iykyk 🌈

⚠️ heads up, important note: setting hv_memory only works with Xen at the moment, using the xl or xm command line tools. like, Xen only. don't come for me, that's just what the page says 😭

🧚 SUPPORTED PARAMETERS 🧚

  • dynamic β€” if you set this, the parameters get updated whenever there's a difference between the HA parameters and the system values while the monitor action is running. if you don't set it, the parameters get set once when the resource instance starts. set-and-forget vs. always-fresh, your choice ✨ (optional, boolean, default true)
  • utilization_cpu β€” turns on setting the node CPU utilization limit. yes queen, track that CPU πŸ’… (optional, boolean, default true)
  • utilization_cpu_reservation β€” subtracts this value when setting the CPU utilization parameter. like leaving room in the car for the aux cord owner 😌 (optional, integer, default 1)
  • utilization_host_memory β€” enables setting available host memory. memory check bestie 🧠 (optional, boolean, default true)
  • utilization_host_memory_reservation β€” subtract this value when setting host memory utilization, in MB. cushion for the memory, fr fr (optional, integer, default 512)
  • utilization_hv_memory β€” enables setting available hypervisor memory. (remember: Xen only, xl or xm, see above 🫢) (optional, boolean, default true)
  • utilization_hv_memory_reservation β€” subtract this value when setting hypervisor memory utilization, in MB. more cushion πŸ’œ (optional, integer, default 512)

πŸ”₯ SUPPORTED ACTIONS πŸ”₯

this resource agent supports the following actions (operations). iconic list incoming:

  • start β€” starts the resource. suggested minimum timeout: 90s. let it cook ⭐
  • stop β€” stops the resource. suggested minimum timeout: 100s. bye bestie, gracefully πŸ‘‹
  • monitor β€” performs a detailed status check. suggested minimum timeout: 20s. suggested interval: 60s. the vibe check, literally πŸ’€
  • meta-data β€” retrieves resource agent metadata (internal use only). suggested minimum timeout: 5s. don't touch unless you know, ngl πŸ™ˆ
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 30s. proofread before you send the text, always πŸŽ€

πŸ“ EXAMPLE CRM SHELL πŸ“

here's an example config for a NodeUtilization resource using the crm(8) shell β€” copy/paste ready, no notes:

primitive p_NodeUtilization ocf:heartbeat:NodeUtilization \
  op monitor timeout="20s" interval="60s"

ate. no crumbs. πŸ’–


🌈 EXAMPLE PCS 🌈

and here's the same thing but for pcs(8), main character tool energy:

pcs resource create p_NodeUtilization ocf:heartbeat:NodeUtilization \
  op monitor timeout="20s" interval="60s"

slay. same resource, different CLI, both iconic πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

go touch grass on the internet, bestie:


πŸ’œ AUTHOR πŸ’œ

ClusterLabs contributors β€” see the resource agent source for information about individual authors. (they're the ones who made this whole thing happen, show some love 🫢)


okay that's the whole page!! and before you close the terminal β€” cute sign-off time: this page came from resource-agents UNKNOWN, dated 10/01/2026, and yes it's page OCF_HEARTBEAT_NODEUT(7), go forth and populate those parameters bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from