After staring two postgres nodes (node 0 primary and node 1) and setting pgpool. Pgpool failover command by default takes node0 as primary. My question is if failover occurs and make node 1 as primary and after some time if failover occurs on node 1 (primary) failover command takes it as standby and skipping failover which causing the cluster without primary and couldn't accept write transactions. Can anyone help me the changes require to make failover command works normal.
pgpool v 4.1 and postgres v 9.6 with replication slots.