OCF_HEARTBEAT_DUMMY(7)
π OCF_HEARTBEAT_DUMMY(7) π
okay bestie, so this is a page from the OCF resource agents manual set β yes that's the whole manual name, we're just vibing with it up here instead of doing a boring header line π«Ά
β¨ NAME β¨
ocf_heartbeat_Dummy β the Example stateless resource agent. that's it. that's the name. iconic behavior honestly π
π SYNOPSIS π
Dummy [start | stop | monitor | migrate_to | migrate_from | meta-data |
validate-all]
π¦ DESCRIPTION π¦
So likeβ¦ this is a Dummy Resource Agent. It does absolutely nothing except keep track of whether it's running or not π no cap, that's the entire job. Its whole purpose in life is to be used for testing and to serve as a template for RA writers. main character energy of a mannequin, but make it cluster-aware β¨
NB: bestie please pay attention to the timeouts specified in the actions section below. They should be meaningful for the kind of resource the agent manages. They should be the minimum advised timeouts, but they shouldn't/cannot cover _all_ possible resource instances. So try to be neither overly generous nor too stingy β be moderate, fr fr. And the minimum timeouts should never be below 10 seconds. periodt.
This resource agent may be configured for native migration if available in the cluster manager. For Pacemaker, the allow-migrate="true" meta attribute enables native migration π
πΈ SUPPORTED PARAMETERS πΈ
stateβ Location to store the resource state in. (unique, optional, string, default"/run/resource-agents/Dummy-RESOURCE_ID.state")fakeβ Fake attribute that can be changed to cause a reload π (optional, string, default"dummy")
π SUPPORTED ACTIONS π
This resource agent supports the following actions (operations):
startβ Starts the resource. Suggested minimum timeout:20s.stopβ Stops the resource. Suggested minimum timeout:20s.monitorβ Performs a detailed status check. Suggested minimum timeout:20s. Suggested interval:10s.reloadβ Suggested minimum timeout:20s.migrate_toβ Executes steps necessary for migrating the resource to the node. Suggested minimum timeout:20s.migrate_fromβ Executes steps necessary for migrating the resource away from the node. Suggested minimum timeout:20s.meta-dataβ Retrieves resource agent metadata (internal use only π). Suggested minimum timeout:5s.validate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:20s.
π EXAMPLE CRM SHELL π
Here's an example config for a Dummy resource using the crm(8) shell, copy-paste ready bb:
primitive p_Dummy ocf:heartbeat:Dummy \
meta allow-migrate="true" \
op monitor timeout="20s" interval="10s" depth="0"
π§ EXAMPLE PCS π§
And here's the same vibe but for pcs(8):
pcs resource create p_Dummy ocf:heartbeat:Dummy \
op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"
β SEE ALSO β
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) π
aaaand that's the whole page bestie, you ate that π«Ά this cutie was brought to you by resource-agents UNKNOWN, dated 10/01/2026 β go forth and test your clusters, mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms