pgpool2.git / summary / log / commit / refs
commit 3ef16429986d5e6ba8925cb89ca3dd518cb6dedb
Author: Yugo Nagata <nagata@sraoss.co.jp>
Date: Fri Jul 06 08:10:07 2012 +0000
Modify use_watchdog option values in pgpool.conf.sample to "off" (default).
Add watchdog options to pgpool.conf.sample-{master-slave, replication, stream}.
pgpool.conf.sample | 3 ++-
pgpool.conf.sample-master-slave | 45 +++++++++++++++++++++++++++++++++++++++++
pgpool.conf.sample-replication | 45 +++++++++++++++++++++++++++++++++++++++++
pgpool.conf.sample-stream | 45 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 137 insertions(+), 1 deletion(-)
diff --git a/pgpool.conf.sample b/pgpool.conf.sample
index 31fda8eb3..157eb7f2c 100644
--- a/pgpool.conf.sample
+++ b/pgpool.conf.sample
@@ -421,7 +421,7 @@ client_idle_limit_in_recovery = 0
#------------------------------------------------------------------------------
# WATCHDOG
#------------------------------------------------------------------------------
-use_watchdog = on
+use_watchdog = off
# Activates watchdog
trusted_servers = ''
# trusted server list which are used
@@ -462,6 +462,7 @@ wd_lifecheck_query = 'SELECT 1'
#other_pgpool_port1 = 5432
#other_wd_port1 = 9000
+
#------------------------------------------------------------------------------
# OTHERS
#------------------------------------------------------------------------------
diff --git a/pgpool.conf.sample-master-slave b/pgpool.conf.sample-master-slave
index 0eb10f5d6..c22dd7643 100644
--- a/pgpool.conf.sample-master-slave
+++ b/pgpool.conf.sample-master-slave
@@ -414,6 +414,51 @@ client_idle_limit_in_recovery = 0
# -1 means immediate disconnection
+#------------------------------------------------------------------------------
+# WATCHDOG
+#------------------------------------------------------------------------------
+use_watchdog = off
+ # Activates watchdog
+trusted_servers = ''
+ # trusted server list which are used
+ # to confirm network connection
+ # (hostA,hostB,hostC,...)
+delegate_IP = ''
+ # delegate IP address
+wd_port = 9000
+ # port number for watchdog service
+wd_interval = 10
+ # lifecheck interval (sec) > 0
+ping_path = '/bin'
+ # ping command path
+ifconfig_path = '/sbin'
+ # ifconfig command path
+if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+ # startup delegate IP command
+if_down_cmd = 'ifconfig eth0:0 down'
+ # shutdown delegate IP command
+
+arping_path = '/usr/sbin' # arping command path
+
+arping_cmd = 'arping -U $_IP_$ -w 1'
+ # arping command
+wd_life_point = 3
+ # lifecheck retry times
+wd_lifecheck_query = 'SELECT 1'
+ # lifecheck query to pgpool from watchdog
+# Other pgpool Connection Settings
+
+#other_pgpool_hostname0 = 'host0'
+ # Host name or IP address to connect to for other pgpool 0
+#other_pgpool_port0 = 5432
+ # Port number for othet pgpool 0
+#other_wd_port0 = 9000
+ # Port number for othet watchdog 0
+#other_pgpool_hostname1 = 'host1'
+#other_pgpool_port1 = 5432
+#other_wd_port1 = 9000
+
+
#------------------------------------------------------------------------------
# OTHERS
#------------------------------------------------------------------------------
diff --git a/pgpool.conf.sample-replication b/pgpool.conf.sample-replication
index d45049393..9756c35fc 100644
--- a/pgpool.conf.sample-replication
+++ b/pgpool.conf.sample-replication
@@ -413,6 +413,51 @@ client_idle_limit_in_recovery = 0
# -1 means immediate disconnection
+#------------------------------------------------------------------------------
+# WATCHDOG
+#------------------------------------------------------------------------------
+use_watchdog = off
+ # Activates watchdog
+trusted_servers = ''
+ # trusted server list which are used
+ # to confirm network connection
+ # (hostA,hostB,hostC,...)
+delegate_IP = ''
+ # delegate IP address
+wd_port = 9000
+ # port number for watchdog service
+wd_interval = 10
+ # lifecheck interval (sec) > 0
+ping_path = '/bin'
+ # ping command path
+ifconfig_path = '/sbin'
+ # ifconfig command path
+if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+ # startup delegate IP command
+if_down_cmd = 'ifconfig eth0:0 down'
+ # shutdown delegate IP command
+
+arping_path = '/usr/sbin' # arping command path
+
+arping_cmd = 'arping -U $_IP_$ -w 1'
+ # arping command
+wd_life_point = 3
+ # lifecheck retry times
+wd_lifecheck_query = 'SELECT 1'
+ # lifecheck query to pgpool from watchdog
+# Other pgpool Connection Settings
+
+#other_pgpool_hostname0 = 'host0'
+ # Host name or IP address to connect to for other pgpool 0
+#other_pgpool_port0 = 5432
+ # Port number for othet pgpool 0
+#other_wd_port0 = 9000
+ # Port number for othet watchdog 0
+#other_pgpool_hostname1 = 'host1'
+#other_pgpool_port1 = 5432
+#other_wd_port1 = 9000
+
+
#------------------------------------------------------------------------------
# OTHERS
#------------------------------------------------------------------------------
diff --git a/pgpool.conf.sample-stream b/pgpool.conf.sample-stream
index 5137b3bf1..399ba0412 100644
--- a/pgpool.conf.sample-stream
+++ b/pgpool.conf.sample-stream
@@ -413,6 +413,51 @@ client_idle_limit_in_recovery = 0
# -1 means immediate disconnection
+#------------------------------------------------------------------------------
+# WATCHDOG
+#------------------------------------------------------------------------------
+use_watchdog = off
+ # Activates watchdog
+trusted_servers = ''
+ # trusted server list which are used
+ # to confirm network connection
+ # (hostA,hostB,hostC,...)
+delegate_IP = ''
+ # delegate IP address
+wd_port = 9000
+ # port number for watchdog service
+wd_interval = 10
+ # lifecheck interval (sec) > 0
+ping_path = '/bin'
+ # ping command path
+ifconfig_path = '/sbin'
+ # ifconfig command path
+if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+ # startup delegate IP command
+if_down_cmd = 'ifconfig eth0:0 down'
+ # shutdown delegate IP command
+
+arping_path = '/usr/sbin' # arping command path
+
+arping_cmd = 'arping -U $_IP_$ -w 1'
+ # arping command
+wd_life_point = 3
+ # lifecheck retry times
+wd_lifecheck_query = 'SELECT 1'
+ # lifecheck query to pgpool from watchdog
+# Other pgpool Connection Settings
+
+#other_pgpool_hostname0 = 'host0'
+ # Host name or IP address to connect to for other pgpool 0
+#other_pgpool_port0 = 5432
+ # Port number for othet pgpool 0
+#other_wd_port0 = 9000
+ # Port number for othet watchdog 0
+#other_pgpool_hostname1 = 'host1'
+#other_pgpool_port1 = 5432
+#other_wd_port1 = 9000
+
+
#------------------------------------------------------------------------------
# OTHERS
#------------------------------------------------------------------------------
[parent: e5bc21f463e0]