<div dir="ltr"><div><br></div><div style>I am running postgres 9.2.6 in streaming replication mode with pgpool 3.3.1 in master slave mode.  I have db1 with postgres and pgpool, and db2 with postgres and pgpool.  The delegate/floating IP is 10.10.10.234.  When I have one of the db&#39;s as both master database and master pgpool with the ip bound to it, and a client connected in using the delegate, and I reboot db2 (the standby), the client looses their connection.  Is this expected?  I did not expect for the client to see any impact when I reboot the standby postgres/pgpool server.  Below is my config.  </div>
<div style><br></div><div style>Thanks!</div><div><br></div><div><br></div><div><br></div><div style>My config:</div><div><br></div><div>listen_addresses = &#39;*&#39;</div><div>port = 9999</div><div>socket_dir = &#39;/var/run/pgpool&#39;</div>
<div>pcp_port = 9898</div><div>pcp_socket_dir = &#39;/var/run/pgpool&#39;</div><div>pcp_timeout = 100</div><div>backend_hostname0 = &#39;10.10.10.133&#39;</div><div>backend_port0 = 5432</div><div>backend_weight0 = 1</div>
<div>backend_data_directory0 = &#39;/var/lib/pgsql/9.2/data&#39;</div><div>backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;</div><div>backend_hostname1 = &#39;10.10.10.233&#39;</div><div>backend_port1 = 5432</div><div>backend_weight1 = 1</div>
<div>backend_data_directory1 = &#39;/var/lib/pgsql/9.2/data&#39;</div><div>backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;</div><div>enable_pool_hba = on</div><div>authentication_timeout = 15</div><div>ssl = off</div><div>num_init_children = 32</div>
<div>max_pool = 4</div><div>child_life_time = 300</div><div>child_max_connections = 0</div><div>connection_life_time = 0</div><div>client_idle_limit = 0</div><div>log_destination = &#39;stderr&#39;</div><div>print_timestamp = on</div>
<div>log_connections = off</div><div>log_hostname = off</div><div>log_statement = off</div><div>log_per_node_statement = off</div><div>log_standby_delay = &#39;none&#39;</div><div>syslog_facility = &#39;LOCAL0&#39;</div><div>
syslog_ident = &#39;pgpool&#39;</div><div>debug_level = 0</div><div>pid_file_name = &#39;/var/run/pgpool/pgpool.pid&#39;</div><div>logdir = &#39;/var/log/pgpool&#39;</div><div>connection_cache = on</div><div>reset_query_list = &#39;ABORT; DISCARD ALL&#39;</div>
<div>replication_mode = off</div><div>replicate_select = off</div><div>insert_lock = on</div><div>lobj_lock_table = &#39;&#39;</div><div>replication_stop_on_mismatch = off</div><div>failover_if_affected_tuples_mismatch = off</div>
<div>load_balance_mode = off</div><div>ignore_leading_white_space = on</div><div>white_function_list = &#39;&#39;</div><div>black_function_list = &#39;nextval,setval&#39;</div><div>master_slave_mode = on</div><div>master_slave_sub_mode = &#39;stream&#39;</div>
<div>sr_check_period = 0</div><div>sr_check_user = &#39;health_check&#39;</div><div>delay_threshold = 0</div><div>follow_master_command = &#39;&#39;</div><div>parallel_mode = off</div><div>pgpool2_hostname = &#39;&#39;</div>
<div>system_db_hostname  = &#39;localhost&#39;</div><div>system_db_port = 5432 </div><div>system_db_dbname = &#39;pgpool&#39;</div><div>system_db_schema = &#39;pgpool_catalog&#39;</div><div>system_db_user = &#39;pgpool&#39;</div>
<div>health_check_period = 5</div><div>health_check_timeout = 20</div><div>health_check_user = &#39;health_check&#39;</div><div>health_check_max_retries = 1</div><div>health_check_retry_delay = 1</div><div>failover_command = &#39;/var/lib/pgsql/9.2/failover.sh %d %P %H %R&#39;</div>
<div>failback_command = &#39;&#39;</div><div>fail_over_on_backend_error = on</div><div>search_primary_node_timeout = 10  </div><div>recovery_user = &#39;nobody&#39;</div><div>recovery_password = &#39;&#39;</div><div>recovery_1st_stage_command = &#39;/var/lib/pgsql/9.2/online_recovery.sh&#39;</div>
<div>recovery_2nd_stage_command = &#39;&#39;</div><div>recovery_timeout = 90</div><div>client_idle_limit_in_recovery = 0</div><div>use_watchdog = on </div><div>trusted_servers = &#39;&#39;</div><div>delegate_IP = &#39;10.10.10.234&#39;</div>
<div>wd_hostname = &#39;10.10.10.233&#39;</div><div>wd_port = 9000</div><div>wd_interval = 3 </div><div>ping_path = &#39;/bin/&#39;</div><div>ifconfig_path = &#39;/var/lib/pgsql/sbin/&#39;</div><div>if_up_cmd = &#39;ifconfig eth1:0 inet 10.10.10.234 netmask 255.255.255.128&#39;</div>
<div>if_down_cmd = &#39;ifconfig eth1:0 down&#39;</div><div>arping_cmd = &#39;arping -U $_IP_$ -w 1&#39;</div><div>wd_life_point = 3</div><div>wd_lifecheck_query = &#39;SELECT 1&#39;</div><div>wd_lifecheck_dbname = &#39;template1&#39;</div>
<div>wd_lifecheck_user = &#39;health_check&#39;</div><div>wd_lifecheck_password = &#39;foo1234&#39;</div><div>other_pgpool_hostname0 = &#39;10.10.10.133&#39;</div><div>other_pgpool_port0 = 9999</div><div>other_wd_port0 = 9000</div>
<div>relcache_expire = 0</div><div>relcache_size = 256</div><div>check_temp_table = on</div><div>memory_cache_enabled = off</div><div>memqcache_method = &#39;shmem&#39;</div><div>memqcache_memcached_host = &#39;localhost&#39;</div>
<div>memqcache_memcached_port = 11211</div><div>memqcache_total_size = 67108864</div><div>memqcache_max_num_cache = 1000000</div><div>memqcache_expire = 0</div><div>memqcache_auto_cache_invalidation = on</div><div>memqcache_maxcache = 409600</div>
<div>memqcache_cache_block_size = 1048576</div><div>memqcache_oiddir = &#39;/var/log/pgpool/oiddir&#39;</div><div>white_memqcache_table_list = &#39;&#39;</div><div>black_memqcache_table_list = &#39;&#39;</div><div>wd_heartbeat_port = 9694</div>
<div>wd_heartbeat_deadtime = 20</div><div>heartbeat_destination0 = &#39;10.10.10.133&#39;</div><div>heartbeat_destination_port0 = 9694</div><div>heartbeat_device0 = &#39;eth1&#39;</div></div>