pgpool-ha - Heartbeat scripts for pgpool

TANIDA Yutaka(tanida@sraoss.co.jp)

1. What's this?

This is a scripts to combine both pgpool and heartbeat. Pgpool is a replication
 server of PostgreSQL and makes reliability , but pgpool server is always single-point-failure. To avoid this , heartbeat, it provides high-availability feature to applications, can be used.

2. Requirement

- heartbeat
 2.0+ required.

- pgpool
 Tested on 3.0+ only , but It will work if 'show pool_status' command was supported.
 pgpool.conf on default path is only supported. 

- PostgreSQL 7.0+
 'psql' also needed for install hosts . postmaster doesn't required.

- perl
 Need 5.0+ , GetOpt::Long. 

3. using

After install this , pgpool can be used as heartbeat OCF-style resources. See Heartbeat site.

http://linux-ha.org/ConfiguringHeartbeat
http://linux-ha.org/ClusterInformationBase/

pgpool.conf in default path (e.g. /usr/local/pgsql/etc/pgpool.conf) is only supported , and following variables are used by pgpool-ha.

*port

Used to determine connecting port.

*health_check_user

used to connecting user and database. Make sure your PostgreSQL has same user/role ,database and pg_hba.conf entry to connect from pgpool host by "trust" authentication.





