Add health_check_password directive.
authorTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 6 Jul 2011 14:00:22 +0000 (14:00 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Wed, 6 Jul 2011 14:00:22 +0000 (14:00 +0000)
commit1ed32ab6cf78e12c39578f0b439e20304e5bb753
tree5b1da27c43ece496975fe81e4f903c3ad16cf22c
parent3cc960d5a39e04c4f32902d236c08da51c57e1f2
Add health_check_password directive.
Enhance check_replication_time_lag() error message.
Patch contributed by Nicolas Thauvin.

His message:

We are currently not able to specify the password of the health check
user, which is needed at least for streaming replication lag.  So I
added the possibility to specify it in the configuration file, in the
attached patch.

Also, I find the error message in check_replication_time_lag()
(pool_worker_child.c) not friendly :

pool_error("check_replication_time_lag: DB node is valid but no
persistent connection");

What about sending this error message to the debug level and adding a
second message on the error level?  Fro example:

pool_error("check_replication_time_lag: could not connect to DB node %d,
check health check configuration", i);
doc/pgpool-en.html
doc/pgpool-ja.html
pgpool.conf.sample
pgpool.conf.sample-master-slave
pgpool.conf.sample-replication
pgpool.conf.sample-stream
pool_config.c
pool_config.h
pool_config.l
pool_worker_child.c