<div dir="ltr"><div>Postgres = 9.4.5-0+deb8u1<br>PGPool2 = 3.3.4-1<br>Debian = 8.2<br><br>I’m
 experiencing several issues with Debian 8 and pgpool2 (master – slave 
with streaming replication). Any piece of advice is very welcome.<br><br>1)     ifconfig down fails for delegate IP<br>a)    When stoping service with “service pgpool2 stop” it always fails<br>b)    When stoping service with “systemctl stop pgpool2” it seldom fails<br><br>2)    Postgres backends status is not sync with watchdog.<br>a.   
 Scenerio: Two pgpools (pg1 is master pg2 is slave), pg1 is stopped, pg2
 becomes master. While pg2 is master, postgresql service in standby 
node  is stopped. pg2  is stopped. postgresql service in standby node  
is started. Pg1 ang pg2 are started, but they have different status for 
postgresql backends. Is this the expected behavior? This has happen in 
stress testing when network seems to become instable and pg2 cannot 
communicate with pg1.<br><br></div>Thanks,<br><div><br></div>pg1 pgpool.conf<br><br>listen_addresses = '*'<br>port = 5432<br>socket_dir = '/var/run/postgresql'<br>pcp_port = 9898<br>pcp_socket_dir = '/var/run/postgresql'<br>backend_hostname0 = 'pg1'<br>backend_port0 = 5433<br>backend_weight0 = 1<br>backend_data_directory0 = '/var/lib/postgresql/9.4/main'<br>backend_flag0 = 'ALLOW_TO_FAILOVER'<br>backend_hostname1 = 'pg2'<br>backend_port1 = 5433<br>backend_weight1 = 1<br>backend_data_directory1 = '/var/lib/postgresql/9.4/main'<br>backend_flag1 = 'ALLOW_TO_FAILOVER'<br>enable_pool_hba = on<br>pool_passwd = 'pool_passwd'<br>authentication_timeout = 60<br>ssl = off<br>num_init_children = 300<br>max_pool = 3<br>child_life_time = 300<br>child_max_connections = 0<br>connection_life_time = 0<br>client_idle_limit = 0<br>log_destination = 'stderr'<br>print_timestamp = on<br>log_connections = off<br>log_hostname = on<br>log_statement = off<br>log_per_node_statement = off<br>log_standby_delay = 'if_over_threshold'<br>syslog_facility = 'LOCAL0'<br>syslog_ident = 'pgpool'<br>debug_level = 0<br>pid_file_name = '/var/run/postgresql/pgpool.pid'<br>logdir = '/var/log/postgresql'<br>connection_cache = on<br>reset_query_list = 'ABORT; DISCARD ALL'<br>replication_mode = off<br>replicate_select = off<br>insert_lock = on<br>lobj_lock_table = ''<br>replication_stop_on_mismatch = off<br>failover_if_affected_tuples_mismatch = off<br>load_balance_mode = off<br>ignore_leading_white_space = on<br>white_function_list = ''<br>black_function_list = 'nextval,setval,lastval,currval'<br>master_slave_mode = on<br>master_slave_sub_mode = 'stream'<br>sr_check_period = 10<br>sr_check_user = 'postgres'<br>sr_check_password = 'password'<br>delay_threshold = 1<br>follow_master_command = ''<br>parallel_mode = off<br>pgpool2_hostname = ''<br>system_db_hostname  = 'localhost'<br>system_db_port = 5432<br>system_db_dbname = 'pgpool'<br>system_db_schema = 'pgpool_catalog'<br>system_db_user = 'pgpool'<br>system_db_password = ''<br>health_check_period = 5<br>health_check_timeout = 20<br>health_check_user = 'postgres'<br>health_check_password = 'password'<br>health_check_max_retries = 2<br>health_check_retry_delay = 1<br>failover_command = '/var/lib/postgresql/9.4/main/failover.sh %d %P %H %R %h %p %D %m %H %M'<br>failback_command = '/var/lib/postgresql/9.4/main/failback.sh %d %h %p %D %m'<br>fail_over_on_backend_error = off<br>search_primary_node_timeout = 10<br>recovery_user = 'postgres'<br>recovery_password = 'password'<br>recovery_1st_stage_command = 'recovery_1st_stage'<br>recovery_2nd_stage_command = ''<br>recovery_timeout = 90<br>client_idle_limit_in_recovery = 0<br>use_watchdog = on<br>trusted_servers = ''<br>ping_path = '/bin'<br>wd_hostname = 'pg1' #differs in standby<br>wd_port = 9000<br>wd_authkey = ''<br>delegate_IP = '172.16.49.224'<br>ifconfig_path = '/usr/bin' #sudo path<br>if_up_cmd = 'sudo /sbin/ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0 up'<br>if_down_cmd = 'sudo /sbin/ifconfig eth0:0 down'<br>arping_path = '/usr/bin' #sudo path<br>arping_cmd = 'sudo /usr/sbin/arping -U $_IP_$ -w 10000 -c 3'<br>clear_memqcache_on_escalation = on<br>wd_escalation_command = ''<br>wd_lifecheck_method = 'heartbeat'<br>wd_interval = 3<br>wd_heartbeat_port = 9694<br>wd_heartbeat_keepalive = 2<br>wd_heartbeat_deadtime = 30<br>heartbeat_destination0 = 'pg2' #differs in standby<br>heartbeat_destination_port0 = 9694<br>heartbeat_device0 = ''<br>wd_life_point = 3<br>wd_lifecheck_query = 'SELECT 1'<br>heartbeat_destination_port0 = 9694<br>heartbeat_device0 = ''<br>wd_life_point = 3<br>wd_lifecheck_query = 'SELECT 1'<br>wd_lifecheck_dbname = 'template1'<br>wd_lifecheck_user = 'nobody'<br>wd_lifecheck_password = ''<br>other_pgpool_hostname0 = 'pg2' #differs in standby<br>other_pgpool_port0 = 5432<br>other_wd_port0 = 9000<br>relcache_expire = 0<br>relcache_size = 256<br>check_temp_table = on<br>memory_cache_enabled = off<br>memqcache_method = 'shmem'<br>memqcache_memcached_host = 'localhost'<br>memqcache_memcached_port = 11211<br>memqcache_total_size = 67108864<br>memqcache_max_num_cache = 1000000<br>memqcache_expire = 0<br>memqcache_auto_cache_invalidation = on<br>memqcache_maxcache = 409600<br>memqcache_cache_block_size = 1048576<br>memqcache_oiddir = '/var/log/pgpool/oiddir'<br>white_memqcache_table_list = ''<br>black_memqcache_table_list = ''<br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Job Céspedes<br></div></div>
</div>