OCF_HEARTBEAT_PGSQLMS(7) | OCF resource agents | OCF_HEARTBEAT_PGSQLMS(7) |
ocf_heartbeat_pgsqlms - A PostgreSQL multi-state resource agent for Pacemaker
pgsqlms [start | stop | monitor | promote | demote | notify | reload | methods | meta-data | validate-all]
Resource script for PostgreSQL in replication. It manages PostgreSQL servers using streaming replication as an HA resource.
(optional, string, default "/var/lib/pgsql/data")
(optional, string, default "/tmp")
(optional, integer, default "5432")
(optional, string, default "/usr/bin")
(optional, string, default "postgres")
(optional, string, default "$PGDATA/recovery.conf.pcmk")
(optional, integer, default "0" disables this feature)
Unless you have a special PostgreSQL setup and you understand this parameter, ignore it
(optional, string, default to the value of "pgdata")
-c config_file=/etc/postgresql/9.3/main/postgresql.conf
(optinal, string, default "")
This resource agent supports the following actions (operations):
The following is an example configuration for a pgsqlms resource using the crm(8) shell:
primitive pgsqld pgsqlms \ params pgdata="/var/lib/postgresql/9.6/main" \ bindir="/usr/lib/postgresql/9.6/bin" \ pghost="/var/run/postgresql" \ recovery_template="/etc/postgresql/9.6/main/recovery.conf.pcmk" \ start_opts="-c config_file=/etc/postgresql/9.6/main/postgresql.conf" \ op start timeout=60s \ op stop timeout=60s \ op promote timeout=30s \ op demote timeout=120s \ op monitor interval=15s timeout=10s role="Master" \ op monitor interval=16s timeout=10s role="Slave" \ op notify timeout=60s ms pgsql-ha pgsqld meta notify=true
The following is an example configuration for a pgsqlms resource using pcs(8):
pcs resource create pgsqld ocf:heartbeat:pgsqlms \ bindir=/usr/pgsql-9.6/bin pgdata=/var/lib/pgsql/9.6/data \ op start timeout=60s \ op stop timeout=60s \ op promote timeout=30s \ op demote timeout=120s \ op monitor interval=15s timeout=10s role="Master" \ op monitor interval=16s timeout=10s role="Slave" \ op notify timeout=60s --master notify=true
http://clusterlabs.org/
Jehan-Guillaume de Rorthais and Mael Rimbault.
2019-01-31 | 2.2.1 |