execute control_slave_status() once again to improve performance of catching up slave status.
… higher Only one node can be sync mode to avoid data loss when using 3 nodes or higher. See http://www.gossamer-threads.com/lists/linuxha/pacemaker/85077?do=post_view_threaded#85077
…nf() - if crm_xxx command fails, retry executing it because the number of IPC connections reaches maximum, crm_xxxx commands fail. - if reload_conf() fails, retry it, because the failure is critical
- change function name from exec_func_with_timeout to exec_with_timeout - change specification of exec_with_timeout to conform it to exec_with_retry - exec_with_timeout outputs more logs - increase in performance
decapitalize hostname to maintain compatibility with Heartbeat stack
add check_wal_receiver parameter to check wal_receiver process on monitor and notify its status using "<resource name>-receiver-status" attribute to check whether PostgreSQL(Hot Standby) connects to primary. The attribute shows status as "normal" or "ERROR". Default is false.
- delete include directive which is add by pgsql RA from postgresql.conf if rep_mode is async. - improve meta-data
check existence of instance number because Pacemaker 1.1.8 or higher do not append instance numbers if globally-unique=false.
Replication mode dosen't work on Pacemaker 1.1.8 because the output of "crm_mon -n" is different from one on Pacemaker 1.0.x. So I fix string processing to work on 1.1.8 and 1.0.12.
…d on stop Change pgsql-status into UNKNOWN when validation is failed on stop. Because pgsql-status remains in HS even though validation failure means stop succeeded in pgsql RA.
- always set synchronous_standby_names in rep_mode.conf to avoid synchronous_standby_names in postgresql.conf - remove unnecessary code
- don't match other master/slave resources - remove some unnecessary variables - simplify finding a master on monitor
- use $OCF_RESKEY_config parameter when it's specified. - change meta-data of config parameter
- simplify the check of replication mode - remove an unnecessary code