OCF_HEARTBEAT_DELAY(7)

πŸ’… OCF_HEARTBEAT_DELAY(7) β€” like, the Delay resource agent, bestie

okay so this page lives in the OCF resource agents manual section, and it's literally about a resource agent whose whole personality is waiting. yes. that's the job. she waits. and honestly? iconic.


✨ NAME ✨

ocf_heartbeat_Delay β€” literally just waits for a defined timespan πŸ•°οΈβœ¨


πŸŽ€ SYNOPSIS πŸŽ€

Delay [start | stop | status | monitor | meta-data | validate-all]

that's it. that's the whole vibe. pick an action, she'll get to it. eventually. that's the point 🫢


🌸 DESCRIPTION 🌸

so like, this script is a resource whose entire main character energy is introducing a delay. that's it. no cap. it delays. if you need something to just… take a minute? take several minutes? she's your girl πŸ’…


πŸ’– SUPPORTED PARAMETERS πŸ’–

  • startdelay β€” how long, in seconds, to delay on the start operation. (optional, integer, default 20)
  • stopdelay β€” how long, in seconds, to delay on the stop operation. (optional, integer, default 30)
  • mondelay β€” how long, in seconds, to delay on the monitor operation. (optional, integer, default 30)

no extra params, no surprises, just three little numbers controlling how long she's gonna be πŸ™ˆ


πŸ‘‘ SUPPORTED ACTIONS πŸ‘‘

this resource agent supports the following actions (operations), and yes, she serves in all of them:

  • start β€” starts the resource. suggested minimum timeout: 30s.
  • stop β€” stops the resource. suggested minimum timeout: 40s.
  • status β€” performs a status check. suggested minimum timeout: 40s. suggested interval: 10s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 40s. suggested interval: 10s.
  • meta-data β€” retrieves resource agent metadata (internal use only, so like, don't touch, bestie πŸ™ˆ). suggested minimum timeout: 5s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 5s.

🌈 EXAMPLE CRM SHELL 🌈

here's an example config for a Delay resource using the crm(8) shell. steal it, it's cute:

primitive p_Delay ocf:heartbeat:Delay \
  op monitor depth="0" timeout="40s" interval="10s"

⭐ EXAMPLE PCS ⭐

and here's the same kinda thing for a Delay resource using pcs(8):

pcs resource create p_Delay ocf:heartbeat:Delay \
  op monitor OCF_CHECK_LEVEL="0" timeout="40s" interval="10s"

(yes the monitor attribute is spelled different between the two β€” depth vs OCF_CHECK_LEVEL β€” don't ask me why, just copy it exactly fr fr πŸ’€)


πŸ¦‹ SEE ALSO πŸ¦‹

that's the one link. go touch grass there 🌱


🧚 AUTHOR 🧚

ClusterLabs contributors β€” and for the deets on individual authors, check the resource agent source, periodt πŸ’œ


a little reminder from me to you: every default, every timeout, every interval up there? keep them exactly as written. she may be chill but the config is not ✨

sign-off szn πŸŽ€ this page is from resource-agents, version UNKNOWN (mysterious, love that for her πŸ’…), dated 10/01/2026. mwah, go forth and delay things πŸ’–πŸ¦‹

πŸ“¦ where this page comes from