<div dir="ltr"><div class="gmail_default" style="font-family: courier\ new, monospace;">Hi All,<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">I have a <a href="http://10.0.0.1/10.0.0.2">10.0.0.1/10.0.0.2</a> master/hot standby configuration with streaming replication, where each node runs pgpool with watchdog enabled and postgres.<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">I shut down the network interface on 10.0.0.1 and wait until 10.0.0.2 triggers failover and promotes itself to master through my failover script.<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">Now the watchdogs on 10.0.0.1 and 10.0.0.2 are out of sync, have conflicting views on which node has failed and both think they are master.<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">When I bring back the network interface on 10.0.0.1, &#39;show pool_nodes&#39; says that 10.0.0.1 is master/up and 10.0.0.2 is standby/down. <br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">I want 10.0.0.1 to be standby and 10.0.0.2 to be master. <br></div><div class="gmail_default" style="font-family: courier\ new, monospace;"><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">I&#39;ve been playing with the failover script.. e.g.<br><br>if (default network gateway is pingable) {<br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">    shut down pgpool and postgres<br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">} else if (this node is standby) {<br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">    promote this node to master<br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">    create a job that will run every minute and try to recover failed node (base backup) <br>    cancel the job upon successful recovery<br>} <br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">Can you please help me with this? Any ideas would be highly appreciated.<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace;">Regards, Alex<br></div></div>