<div dir="ltr">Hello,<div><br></div><div>i have a little problem, or scenario that is happening and that I want to avoid.</div><div><br></div><div>Here is scenario:</div><div><br></div><div>I have two nodes named node1, and node2. node1 is primary, node2 is standby.</div>
<div><br></div><div>- node1 fails</div><div>- pgpool promote node2 to primary</div><div>- i restart pgpool service for whatever reason</div><div>- pgpool is taking old primary (node1),to be primary again, even last state was that node2 is primary</div>
<div>- pgpool is working with node1 as primary for some time, with old data</div><div><br></div><div><br></div><div>After this,it is hard to check which node have newer data, and its hart not to lose one piece of data.</div>
<div><br></div><div>How it is possible that pgpool take node1 as primary even if last state was that node2 was primary?</div><div><br></div><div>What is the best practice for this kind of situation? </div><div><div><br></div>
<div>Thanks </div>-- <br>Armin
</div></div>