[pgpool-committers: 4271] pgpool: Add debugging/testing aid for health check.
Tatsuo Ishii
ishii at postgresql.org
Fri Sep 8 15:51:20 JST 2017
Add debugging/testing aid for health check.
By creating logidr/backend_down_request file, an artificial backend
error can be raised in heal check. The file should contain:
node_id[TAB]down
Example:
1 down
If the health check process finds such a line in the file, failover is
triggered.
After this, the line is rewritten to:
1 already_down
to prevent infinite failover requests.
This feature can only be enabled by defining the C compiler definition
in the source src/main/health_check.c around line 75.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=0f75428cf805bb4cf3127f8ea1470507da0d2c2a
Modified Files
--------------
src/main/health_check.c | 125 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 125 insertions(+)
More information about the pgpool-committers
mailing list