1OCF_HEARTBEAT_STATEF(7)       OCF resource agents      OCF_HEARTBEAT_STATEF(7)
2
3
4

NAME

6       ocf_heartbeat_Stateful - Example stateful resource agent
7

SYNOPSIS

9       Stateful [start | stop | monitor | promote | demote | meta-data |
10                validate-all]
11

DESCRIPTION

13       This is an example resource agent that implements two states
14

SUPPORTED PARAMETERS

16       state
17           Location to store the resource state in
18
19           (unique, optional, string, default
20           "/run/resource-agents/Stateful-RESOURCE_ID.state")
21

SUPPORTED ACTIONS

23       This resource agent supports the following actions (operations):
24
25       start
26           Starts the resource. Suggested minimum timeout: 20s.
27
28       stop
29           Stops the resource. Suggested minimum timeout: 20s.
30
31       promote
32           Promotes the resource to the Master role. Suggested minimum
33           timeout: 20s.
34
35       demote
36           Demotes the resource to the Slave role. Suggested minimum timeout:
37           20s.
38
39       monitor
40           Performs a detailed status check. Suggested minimum timeout: 20s.
41           Suggested interval: 10s.
42
43       meta-data
44           Retrieves resource agent metadata (internal use only). Suggested
45           minimum timeout: 5s.
46
47       validate-all
48           Performs a validation of the resource configuration. Suggested
49           minimum timeout: 20s.
50

EXAMPLE CRM SHELL

52       The following is an example configuration for a Stateful resource using
53       the crm(8) shell:
54
55           primitive p_Stateful ocf:heartbeat:Stateful \
56             op monitor depth="0" timeout="20s" interval="10s"
57
58           ms ms_Stateful p_Stateful \
59             meta notify="true" interleave="true"
60

EXAMPLE PCS

62       The following is an example configuration for a Stateful resource using
63       pcs(8)
64
65           pcs resource create p_Stateful ocf:heartbeat:Stateful \
66             op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s" promotable
67

SEE ALSO

69       http://clusterlabs.org/
70

AUTHOR

72       ClusterLabs contributors (see the resource agent source for information
73       about individual authors)
74
75
76
77resource-agents UNKNOWN           04/06/2022           OCF_HEARTBEAT_STATEF(7)
Impressum