OCF_HEARTBEAT_GALERA(7) | OCF resource agents | OCF_HEARTBEAT_GALERA(7) |
ocf_heartbeat_galera - Manages a galera instance
galera [start | stop | status | monitor | promote | demote | meta-data | validate-all]
Resource script for managing galera database.
binary
(optional, string, no default)
client_binary
(optional, string, no default)
config
(optional, string, no default)
datadir
(optional, string, no default)
user
(optional, string, no default)
group
(optional, string, no default)
log
(optional, string, no default)
pid
(optional, string, no default)
socket
(optional, string, no default)
enable_creation
(optional, boolean, default false)
additional_parameters
(optional, string, no default)
wsrep_cluster_address
Only nodes present in this node list will be allowed to start a galera instance. The galera node names listed in this address are expected to match valid pacemaker node names. If both names need to differ, you must provide a mapping in option cluster_host_map.
(required, string, no default)
cluster_host_map
To be used when both pacemaker and galera names need to differ, (e.g. when galera names map to IP from a specific network interface) This takes the form of: pcmk1:node.1.galera;pcmk2:node.2.galera;pcmk3:node.3.galera
where the galera resource started on node pcmk1 would be named node.1.galera in the wsrep_cluster_address
(optional, string, no default)
check_user
(optional, string, no default)
check_passwd
(optional, string, no default)
check_passwd_use_empty
(optional, boolean, default 0)
two_node_mode
(optional, boolean, default false)
This resource agent supports the following actions (operations):
start
stop
status
monitor
monitor (Master role)
monitor (Slave role)
promote
demote
validate-all
meta-data
The following is an example configuration for a galera resource using the crm(8) shell:
primitive p_galera ocf:heartbeat:galera \
params \
wsrep_cluster_address=string \
op monitor depth="0" timeout="30s" interval="20s" \
op monitor role="Master" depth="0" timeout="30s" interval="10s" \
op monitor role="Slave" depth="0" timeout="30s" interval="30s"
ms ms_galera p_galera \
meta notify="true" interleave="true"
The following is an example configuration for a galera resource using pcs(8)
pcs resource create p_galera ocf:heartbeat:galera \
wsrep_cluster_address=string \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="20s" \
op monitor role="Master" OCF_CHECK_LEVEL="0" timeout="30s" interval="10s" \
op monitor role="Slave" OCF_CHECK_LEVEL="0" timeout="30s" interval="30s" promotable
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
12/14/2020 | resource-agents UNKNOWN |