pacemaker
2.1.8-3980678f03
Scalable High-Availability cluster resource manager
include
crm
common
options.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 the Pacemaker project contributors
3
*
4
* The version control history for this file may have further details.
5
*
6
* This source code is licensed under the GNU Lesser General Public License
7
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8
*/
9
10
#ifndef PCMK__CRM_COMMON_OPTIONS__H
11
#define PCMK__CRM_COMMON_OPTIONS__H
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
23
/*
24
* Cluster options
25
*/
26
27
#define PCMK_OPT_BATCH_LIMIT "batch-limit"
28
#define PCMK_OPT_CLUSTER_DELAY "cluster-delay"
29
#define PCMK_OPT_CLUSTER_INFRASTRUCTURE "cluster-infrastructure"
30
#define PCMK_OPT_CLUSTER_IPC_LIMIT "cluster-ipc-limit"
31
#define PCMK_OPT_CLUSTER_NAME "cluster-name"
32
#define PCMK_OPT_CLUSTER_RECHECK_INTERVAL "cluster-recheck-interval"
33
#define PCMK_OPT_CONCURRENT_FENCING "concurrent-fencing"
34
#define PCMK_OPT_DC_DEADTIME "dc-deadtime"
35
#define PCMK_OPT_DC_VERSION "dc-version"
36
#define PCMK_OPT_ELECTION_TIMEOUT "election-timeout"
37
#define PCMK_OPT_ENABLE_ACL "enable-acl"
38
#define PCMK_OPT_ENABLE_STARTUP_PROBES "enable-startup-probes"
39
#define PCMK_OPT_FENCE_REACTION "fence-reaction"
40
#define PCMK_OPT_HAVE_WATCHDOG "have-watchdog"
41
#define PCMK_OPT_JOIN_FINALIZATION_TIMEOUT "join-finalization-timeout"
42
#define PCMK_OPT_JOIN_INTEGRATION_TIMEOUT "join-integration-timeout"
43
#define PCMK_OPT_LOAD_THRESHOLD "load-threshold"
44
#define PCMK_OPT_MAINTENANCE_MODE "maintenance-mode"
45
#define PCMK_OPT_MIGRATION_LIMIT "migration-limit"
46
#define PCMK_OPT_NO_QUORUM_POLICY "no-quorum-policy"
47
#define PCMK_OPT_NODE_ACTION_LIMIT "node-action-limit"
48
#define PCMK_OPT_NODE_HEALTH_BASE "node-health-base"
49
#define PCMK_OPT_NODE_HEALTH_GREEN "node-health-green"
50
#define PCMK_OPT_NODE_HEALTH_RED "node-health-red"
51
#define PCMK_OPT_NODE_HEALTH_STRATEGY "node-health-strategy"
52
#define PCMK_OPT_NODE_HEALTH_YELLOW "node-health-yellow"
53
#define PCMK_OPT_NODE_PENDING_TIMEOUT "node-pending-timeout"
54
#define PCMK_OPT_PE_ERROR_SERIES_MAX "pe-error-series-max"
55
#define PCMK_OPT_PE_INPUT_SERIES_MAX "pe-input-series-max"
56
#define PCMK_OPT_PE_WARN_SERIES_MAX "pe-warn-series-max"
57
#define PCMK_OPT_PLACEMENT_STRATEGY "placement-strategy"
58
#define PCMK_OPT_PRIORITY_FENCING_DELAY "priority-fencing-delay"
59
#define PCMK_OPT_SHUTDOWN_ESCALATION "shutdown-escalation"
60
#define PCMK_OPT_SHUTDOWN_LOCK "shutdown-lock"
61
#define PCMK_OPT_SHUTDOWN_LOCK_LIMIT "shutdown-lock-limit"
62
#define PCMK_OPT_START_FAILURE_IS_FATAL "start-failure-is-fatal"
63
#define PCMK_OPT_STARTUP_FENCING "startup-fencing"
64
#define PCMK_OPT_STONITH_ACTION "stonith-action"
65
#define PCMK_OPT_STONITH_ENABLED "stonith-enabled"
66
#define PCMK_OPT_STONITH_MAX_ATTEMPTS "stonith-max-attempts"
67
#define PCMK_OPT_STONITH_TIMEOUT "stonith-timeout"
68
#define PCMK_OPT_STONITH_WATCHDOG_TIMEOUT "stonith-watchdog-timeout"
69
#define PCMK_OPT_STOP_ALL_RESOURCES "stop-all-resources"
70
#define PCMK_OPT_STOP_ORPHAN_ACTIONS "stop-orphan-actions"
71
#define PCMK_OPT_STOP_ORPHAN_RESOURCES "stop-orphan-resources"
72
#define PCMK_OPT_SYMMETRIC_CLUSTER "symmetric-cluster"
73
#define PCMK_OPT_TRANSITION_DELAY "transition-delay"
74
75
76
/*
77
* Meta-attributes
78
*/
79
80
#define PCMK_META_ALLOW_MIGRATE "allow-migrate"
81
#define PCMK_META_ALLOW_UNHEALTHY_NODES "allow-unhealthy-nodes"
82
#define PCMK_META_CLONE_MAX "clone-max"
83
#define PCMK_META_CLONE_MIN "clone-min"
84
#define PCMK_META_CLONE_NODE_MAX "clone-node-max"
85
#define PCMK_META_CONTAINER_ATTRIBUTE_TARGET "container-attribute-target"
86
#define PCMK_META_CRITICAL "critical"
87
#define PCMK_META_ENABLED "enabled"
88
#define PCMK_META_FAILURE_TIMEOUT "failure-timeout"
89
#define PCMK_META_GLOBALLY_UNIQUE "globally-unique"
90
#define PCMK_META_INTERLEAVE "interleave"
91
#define PCMK_META_INTERVAL "interval"
92
#define PCMK_META_IS_MANAGED "is-managed"
93
#define PCMK_META_INTERVAL_ORIGIN "interval-origin"
94
#define PCMK_META_MAINTENANCE "maintenance"
95
#define PCMK_META_MIGRATION_THRESHOLD "migration-threshold"
96
#define PCMK_META_MULTIPLE_ACTIVE "multiple-active"
97
#define PCMK_META_NOTIFY "notify"
98
#define PCMK_META_ON_FAIL "on-fail"
99
#define PCMK_META_ORDERED "ordered"
100
#define PCMK_META_PRIORITY "priority"
101
#define PCMK_META_PROMOTABLE "promotable"
102
#define PCMK_META_PROMOTED_MAX "promoted-max"
103
#define PCMK_META_PROMOTED_NODE_MAX "promoted-node-max"
104
#define PCMK_META_RECORD_PENDING "record-pending"
105
#define PCMK_META_REMOTE_ADDR "remote-addr"
106
#define PCMK_META_REMOTE_ALLOW_MIGRATE "remote-allow-migrate"
107
#define PCMK_META_REMOTE_CONNECT_TIMEOUT "remote-connect-timeout"
108
#define PCMK_META_REMOTE_NODE "remote-node"
109
#define PCMK_META_REMOTE_PORT "remote-port"
110
#define PCMK_META_REQUIRES "requires"
111
#define PCMK_META_RESOURCE_STICKINESS "resource-stickiness"
112
#define PCMK_META_START_DELAY "start-delay"
113
#define PCMK_META_TARGET_ROLE "target-role"
114
#define PCMK_META_TIMEOUT "timeout"
115
#define PCMK_META_TIMESTAMP_FORMAT "timestamp-format"
116
117
118
/*
119
* Remote resource instance attributes
120
*/
121
122
#define PCMK_REMOTE_RA_ADDR "addr"
123
#define PCMK_REMOTE_RA_PORT "port"
124
#define PCMK_REMOTE_RA_RECONNECT_INTERVAL "reconnect_interval"
125
#define PCMK_REMOTE_RA_SERVER "server"
126
127
128
/*
129
* Enumerated values
130
*/
131
132
#define PCMK_VALUE_ALWAYS "always"
133
#define PCMK_VALUE_AND "and"
134
#define PCMK_VALUE_BALANCED "balanced"
135
#define PCMK_VALUE_BLOCK "block"
136
#define PCMK_VALUE_BOOLEAN "boolean"
137
#define PCMK_VALUE_CIB_BOOTSTRAP_OPTIONS "cib-bootstrap-options"
138
#define PCMK_VALUE_COROSYNC "corosync"
139
#define PCMK_VALUE_CREATE "create"
140
#define PCMK_VALUE_CUSTOM "custom"
141
#define PCMK_VALUE_DATE_SPEC "date_spec"
142
#define PCMK_VALUE_DEFAULT "default"
143
#define PCMK_VALUE_DEFINED "defined"
144
#define PCMK_VALUE_DELETE "delete"
145
#define PCMK_VALUE_DEMOTE "demote"
146
#define PCMK_VALUE_DENY "deny"
147
#define PCMK_VALUE_DURATION "duration"
148
#define PCMK_VALUE_DYNAMIC_LIST "dynamic-list"
149
#define PCMK_VALUE_EQ "eq"
150
#define PCMK_VALUE_EXCLUSIVE "exclusive"
151
#define PCMK_VALUE_FAILED "failed"
152
#define PCMK_VALUE_FALSE "false"
153
#define PCMK_VALUE_FENCE "fence"
154
#define PCMK_VALUE_FENCING "fencing"
155
#define PCMK_VALUE_FREEZE "freeze"
156
#define PCMK_VALUE_GRANTED "granted"
157
#define PCMK_VALUE_GREEN "green"
158
#define PCMK_VALUE_GT "gt"
159
#define PCMK_VALUE_GTE "gte"
160
#define PCMK_VALUE_HOST "host"
161
#define PCMK_VALUE_IGNORE "ignore"
162
#define PCMK_VALUE_IN_RANGE "in_range"
163
#define PCMK_VALUE_INFINITY "INFINITY"
164
#define PCMK_VALUE_INTEGER "integer"
165
#define PCMK_VALUE_LITERAL "literal"
166
#define PCMK_VALUE_LT "lt"
167
#define PCMK_VALUE_LTE "lte"
168
#define PCMK_VALUE_MANDATORY "Mandatory"
169
#define PCMK_VALUE_MEMBER "member"
170
#define PCMK_VALUE_META "meta"
171
#define PCMK_VALUE_MIGRATE_ON_RED "migrate-on-red"
172
#define PCMK_VALUE_MINIMAL "minimal"
173
#define PCMK_VALUE_MINUS_INFINITY "-" PCMK_VALUE_INFINITY
174
#define PCMK_VALUE_MODIFY "modify"
175
#define PCMK_VALUE_MOVE "move"
176
#define PCMK_VALUE_NE "ne"
177
#define PCMK_VALUE_NEVER "never"
178
#define PCMK_VALUE_NONE "none"
179
#define PCMK_VALUE_NONNEGATIVE_INTEGER "nonnegative_integer"
180
#define PCMK_VALUE_NOT_DEFINED "not_defined"
181
#define PCMK_VALUE_NOTHING "nothing"
182
#define PCMK_VALUE_NUMBER "number"
183
#define PCMK_VALUE_OFFLINE "offline"
184
#define PCMK_VALUE_ONLINE "online"
185
#define PCMK_VALUE_ONLY_GREEN "only-green"
186
#define PCMK_VALUE_OPTIONAL "Optional"
187
#define PCMK_VALUE_OR "or"
188
#define PCMK_VALUE_PANIC "panic"
189
#define PCMK_VALUE_PARAM "param"
190
#define PCMK_VALUE_PENDING "pending"
191
#define PCMK_VALUE_PERCENTAGE "percentage"
192
#define PCMK_VALUE_PLUS_INFINITY "+" PCMK_VALUE_INFINITY
193
#define PCMK_VALUE_PORT "port"
194
#define PCMK_VALUE_PROGRESSIVE "progressive"
195
#define PCMK_VALUE_QUORUM "quorum"
196
#define PCMK_VALUE_READ "read"
197
#define PCMK_VALUE_RED "red"
198
#define PCMK_VALUE_REMOTE "remote"
199
#define PCMK_VALUE_RESTART "restart"
200
#define PCMK_VALUE_RESTART_CONTAINER "restart-container"
201
#define PCMK_VALUE_REVOKED "revoked"
202
#define PCMK_VALUE_SCORE "score"
203
#define PCMK_VALUE_SELECT "select"
204
#define PCMK_VALUE_SERIALIZE "Serialize"
205
#define PCMK_VALUE_STANDBY "standby"
206
#define PCMK_VALUE_STATIC_LIST "static-list"
207
#define PCMK_VALUE_STATUS "status"
208
#define PCMK_VALUE_STRING "string"
209
#define PCMK_VALUE_STOP "stop"
210
#define PCMK_VALUE_STOP_ONLY "stop_only"
211
#define PCMK_VALUE_STOP_START "stop_start"
212
#define PCMK_VALUE_STOP_UNEXPECTED "stop_unexpected"
213
#define PCMK_VALUE_SUCCESS "success"
214
#define PCMK_VALUE_TIMEOUT "timeout"
215
#define PCMK_VALUE_TRUE "true"
216
#define PCMK_VALUE_UNFENCING "unfencing"
217
#define PCMK_VALUE_UNKNOWN "unknown"
218
#define PCMK_VALUE_UTILIZATION "utilization"
219
#define PCMK_VALUE_VERSION "version"
220
#define PCMK_VALUE_WRITE "write"
221
#define PCMK_VALUE_YELLOW "yellow"
222
223
// @COMPAT This will become a deprecated alias for PCMK_VALUE_FENCE (see T279)
224
#define PCMK_VALUE_FENCE_LEGACY "suicide"
225
226
227
#ifdef __cplusplus
228
}
229
#endif
230
231
#endif // PCMK__CRM_COMMON_OPTIONS__H
Generated on Thu Aug 8 2024 18:08:10 for pacemaker by
1.8.14