<div dir="ltr">Hello,<div><br></div><div>After setting up pgpool2 4.1 based on below tutorial, I kept getting unreliable behavior. </div><div><br></div><div><a href="https://www.pgpool.net/docs/41/en/html/example-cluster.html">https://www.pgpool.net/docs/41/en/html/example-cluster.html</a><br></div><div><br></div><div>So I followed all the steps and realized that I was not setting standbys as suggested.</div><div><br></div><div>First I start all 3 servers:</div><div><br></div><div>systemctl start postgresql</div><div>systemctl start pgpool2</div><div><br></div><div>After, when I ran following command from my primary:</div><div><br></div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0)">pcp_recovery_node</span> -h {VIRTUAL IP} -p 9898 -U pgpool <span style="background-color:rgb(247,247,247);color:rgb(0,0,0)"> -n 1</span><br></div><div><br></div><div>It gave me error:</div><div><br></div><div>ERROR:  process recovery request failed<br>DETAIL:  recovery request is only allowed in replication and streaming replication modes.<br></div><div><br></div><div>The tutorial does not mention much about how to set up streaming replication mode. I set up all params in postgresql.conf as per the tutorial.</div><div><br></div><div>I have 2 questions:</div><div>1 - what is the main issue? Is it the above error about streaming replication mode?</div><div>2 - If not, is my original setup is problematic? </div><div>I have strong feeling it is the case: </div><div>Even when I stop pgpool on all nodes, and start node0, <span style="background-color:rgb(247,247,247);color:rgb(0,0,0)">show pool_nodes</span> show node 0 as down, and node 1 as master (even though pgpool service is not even running there!)<br></div><div>I repeatedly stopped and started postgres and pgpool, but node 1 constantly remains the master.</div><div><br></div><div>Is there a way to reset all the previous runs of pgpool (maybe some old state causing issues)<br></div><div>Once I solve it, I also need to solve how to set up proper standby server using <span style="background-color:rgb(247,247,247);color:rgb(0,0,0)">pcp_recovery_node</span></div><div><br></div><div>This setup is driving me mad. </div><div>-Nirav</div></div>