In the test pgbench -i is performed. It is possible that this bring
streaming replication delay, which in turn disturbs app/db
redirecting test. Fix is, disabling delay_threshold.
echo "database_redirect_preference_list = 'postgres:primary,test:1,mydb[5-9]:2,test2:standby,test3:primary(0.0),test4:standby(0.0),test5:primary(1.0)'" >> etc/pgpool.conf
+# disable replication delay check to not prevent db/app redirecting
+echo "delay_threshold = 0" >> etc/pgpool.conf
+
./startall
export PGPORT=$PGPOOL_PORT