GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OCF_HEARTBEAT_DUMMYP(7) OCF resource agents OCF_HEARTBEAT_DUMMYP(7)

ocf_heartbeat_dummypy - Example stateless resource agent

dummypy [start | stop | monitor | migrate_to | migrate_from | meta-data | validate-all]

This is a Dummy Resource Agent. It does absolutely nothing except keep track of whether its running or not. Its purpose in life is for testing and to serve as a template for RA writers.

NB: 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, but moderate. The minimum timeouts should never be below 10 seconds.

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.

state
Location to store the resource state in.

(unique, optional, string, no default)

fake

Fake attribute that can be changed to cause a reload

(optional, string, no default)

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.

validate-all

Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

meta-data

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 10s.

The following is an example configuration for a dummypy resource using the crm(8) shell:

primitive p_dummypy ocf:heartbeat:dummypy \
  meta allow-migrate="true" \
  op monitor timeout="20s" interval="10s" depth="0" 

The following is an example configuration for a dummypy resource using pcs(8)

pcs resource create p_dummypy ocf:heartbeat:dummypy \
  op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0" 

http://clusterlabs.org/

ClusterLabs contributors (see the resource agent source for information about individual authors)
04/12/2022 resource-agents 4.10.0

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.