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_GALERA(7) OCF resource agents OCF_HEARTBEAT_GALERA(7)

ocf_heartbeat_galera - Manages a galara instance

galera [start | stop | status | monitor | promote | demote | meta-data | validate-all]

Resource script for managing galara database.

binary
Location of the MySQL server binary
(optional, string, default "/usr/bin/safe_mysqld")
client_binary
Location of the MySQL client binary
(optional, string, default "mysql")
config
Configuration file
(optional, string, default "/etc/my.cnf")
datadir
Directory containing databases
(optional, string, default "/var/lib/mysql")
user
User running MySQL daemon
(optional, string, default "mysql")
group
Group running MySQL daemon (for logfile and directory permissions)
(optional, string, default "mysql")
log
The logfile to be used for mysqld.
(optional, string, default "/var/log/mysqld.log")
pid
The pidfile to be used for mysqld.
(optional, string, default "/var/run/mysql/mysqld.pid")
socket
The socket to be used for mysqld.
(optional, string, default "/var/lib/mysql/mysql.sock")
enable_creation
If the MySQL database does not exist, it will be created
(optional, boolean, default 0)
additional_parameters
Additional parameters which are passed to the mysqld on startup. (e.g. --skip-external-locking or --skip-grant-tables)
(optional, string, no default)
wsrep_cluster_address
The galera cluster address. This takes the form of: gcomm://node,node,node
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
A mapping of pacemaker node names to galera node names.
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
Cluster check user.
(optional, string, default "root")
check_passwd
Cluster check user password
(optional, string, no default)

This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 120s.
stop
Stops the resource. Suggested minimum timeout: 120s.
status
Performs a status check. Suggested minimum timeout: 60s.
monitor
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 20s.
monitor (Master role)
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s.
monitor (Slave role)
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 30s.
promote
Promotes the resource to the Master role. Suggested minimum timeout: 300s.
demote
Demotes the resource to the Slave role. Suggested minimum timeout: 120s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

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 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" --master

http://clusterlabs.org/

ClusterLabs contributors (see the resource agent source for information about individual authors)
01/01/2019 resource-agents UNKNOWN

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.