<div dir="ltr">Hello all,<div><br></div><div>I have two pgpool nodes which I am using a TCP load balancer to spread between. I am using watchdog to synchronise PostgreSQL node information between the two and an external HA solution (with ALLOW_TO_FAILOVER).</div>


<div><br></div><div>If I start both my pgpool nodes up I get the following inital state:<br></div><div><br></div><div><div>postgres=# show pool_nodes;</div><div> node_id |  hostname   | port | status | lb_weight |  role</div>
<div>---------+-------------+------+--------+-----------+---------</div>

<div> 0       | 10.10.10.1   | 5432 | 2      | 0.500000  | standby</div><div> 1       | 10.10.10.2   | 5432 | 2      | 0.500000  | primary</div><div>(2 rows)</div></div><div><br></div><div>And then I run the following command:</div>
<div><br></div><div> pcp_detach_node 1 load_balancer 9898 postgres postgres 0<br></div><div><br></div><div>Now both pgpool nodes show the following:</div><div><br></div><div><div>postgres=# show pool_nodes;</div><div> node_id |  hostname   | port | status | lb_weight |  role</div>
<div>---------+-------------+------+--------+-----------+---------</div><div> 0       | 10.10.10.1  | 5432 | 3      | 0.500000  | standby</div><div> 1       | 10.10.10.2  | 5432 | 2      | 0.500000  | primary</div><div>(2 rows)</div>
</div><div><br></div><div>This proves watchdog is working, as the command is sent to one pgpool node through the load_balancer.</div><div><br></div><div>Now if I restart pgpool node two I would expect it to come back up with the config above, not the initial config - as it would have talked to the watchdog on the other node. This is not the case though.</div>
<div><br></div><div>The non restarted node still reports:</div><div><br></div><div><div>postgres=# show pool_nodes;</div><div> node_id |  hostname   | port | status | lb_weight |  role</div><div>---------+-------------+------+--------+-----------+---------</div>
<div> 0       | 10.10.10.1  | 5432 | 3      | 0.500000  | standby</div><div> 1       | 10.10.10.2  | 5432 | 2      | 0.500000  | primary</div><div>(2 rows)</div></div><div><br></div><div>And the restarted node reports:</div>
<div><br></div><div><div>postgres=# show pool_nodes;</div><div> node_id |  hostname   | port | status | lb_weight |  role</div><div>---------+-------------+------+--------+-----------+---------</div><div> 0       | 10.10.10.1   | 5432 | 2      | 0.500000  | standby</div>
<div> 1       | 10.10.10.2   | 5432 | 2      | 0.500000  | primary</div><div>(2 rows)</div></div><div><br></div><div>Any ideas on how to fix this?</div><div><div><div style="color:rgb(184,39,106);font-weight:bold;font-style:normal;font-variant:normal;font-size:14px;line-height:normal;font-family:Arial,Helvetica,sans-serif">



        <br>
        <span style="color:rgb(50,59,98)">James Sewell,</span><br>
        <span style="color:rgb(169,169,169)"><span style="font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>



        <span style="color:rgb(169,169,169)">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin: 0px; width: 153px; min-height: 50px;"><br>
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:20px;font-family:Arial,Helvetica,sans-serif;color:rgb(64,64,64);margin:0px">
        <span style="color:rgb(169,169,169)">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:rgb(169,169,169)"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208000" value="+61383708000" target="_blank">(+61) 3 8370 8000</a></span></span><span style="color:rgb(169,169,169)"> </span><strong> </strong><span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>W</strong></span></span> <a style="color:rgb(64,64,64);margin:2px 0px;text-decoration:none"><span style="color:rgb(169,169,169)">www.lisasoft.com</span></a>  <span style="color:rgb(50,59,98)"><span style="width:15px;display:inline-block"><strong>F </strong></span></span><span style="color:rgb(169,169,169)"><span style="font-family:Arial,Verdana,sans-serif"><a href="tel:%28%2B61%29%203%208370%208099" value="+61383708099" target="_blank">(+61) 3 8370 8099</a></span></span></div>



<div style="padding-top:8px">
         </div></div>
</div></div>

<br>
<p><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.545454025268555px;background-color:rgb(255,255,255)"><hr><font size="1" color="Gray" face="Arial">The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.</font></div></p>