Hi,<div><br></div><div>In the case you describe below, using DISALLOW_TO_FAILOVER what is the purpose of the Watchdog?</div><div><br></div><div>I have noticed pcp commands which alter node state are at least propagated.<span></span></div>
<div><br></div><div>Cheers,</div><div>James<br><br>On Thursday, 26 June 2014, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Mon, 23 Jun 2014 16:33:35 +1000<br>
James Sewell &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;james.sewell@lisasoft.com&#39;)">james.sewell@lisasoft.com</a>&gt; wrote:<br>
<br>
&gt; Hello All,<br>
&gt;<br>
&gt; I have a load balancer in front of a pair of pgpool nodes (3.3.1), in front<br>
&gt; of a pair of PostgreSQL   nodes (9.3) which are configured as a streaming<br>
&gt; pair. I am running on RHEL.<br>
&gt;<br>
&gt; I am using another HA tool to manage the failover between the Postgres<br>
&gt; nodes, and the load is spread between the pgpool nodes with inactive nodes<br>
&gt; being taken out of the load balanced pool.<br>
&gt;<br>
&gt; Do I need watchdog in this case? I have seen reports that pgpool still<br>
&gt; synchronises useful information using this connection, but can&#39;t find what<br>
&gt; this information is?<br>
&gt;<br>
&gt; If I did use watchdog, which settings would I need in this limited case?<br>
<br>
When watchdog enabled, backend status is shared between pgpools.<br>
For example, when backend goes down ** and when a pgpool detects<br>
this and handles the failover **, the backend status change is sent<br>
to another pgpool.<br>
<br>
However, if you use another HA tools to protecte backends, you might<br>
want to use DIALLOW_TO_FAILOVER flag in backend_flag.<br>
<a href="http://www.pgpool.net/docs/latest/pgpool-en.html#BACKEND_FLAG" target="_blank">http://www.pgpool.net/docs/latest/pgpool-en.html#BACKEND_FLAG</a><br>
If you use DIALLOW_TO_FAILOVER, the backend status change wouldn&#39;t<br>
be sent to another pgpool, since pgpool doesn&#39;t handle backend failover.<br>
<br>
And in your case, delegate_IP should be empty since virtual IP sn&#39;t necessary.<br>
<br>
&gt;<br>
&gt; Also is there a pcp command which I can use to tell pgpool that a new node<br>
&gt; is master, but not actually promote it (this would have happened already)?<br>
&gt; Does pcp_promote_node do this when no promotion script is provided?<br>
<br>
pcp_promote_node works as follow:<br>
<br>
(1) This changes pgpool-II&#39;s internal status and set the specified<br>
    node to primary. The internal status is used in online-recovery<br>
    and loadbalancing etc..<br>
** Note that this doesn&#39;t control the backend nodes themselves.**<br>
<br>
(2) All nodes other than the new primary are detached from pgpool-II.<br>
<br>
(3) pgpool-II execute follow_master command for all the detached nodes.<br>
<br>
<br>
As mentioned at (1), pcp_promote_node doesn&#39;t actually promote bacend node.<br>
However, please note that pcp_promote_node detaches all nodes other than the<br>
new primary. You would have to execute pcp_attach_node to attach the nodes in<br>
follow_master command.<br>
<br>
When watchdog enabled, backend status changes by pcp_promote_node and<br>
pcp_attach_node also are sent to another pgpool.<br>
<br>
&gt;<br>
&gt; Thanks for the help.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; James Sewell,<br>
&gt; Solutions Architect<br>
&gt; ______________________________________<br>
&gt;<br>
&gt;<br>
&gt;  Level 2, 50 Queen St, Melbourne VIC 3000<br>
&gt;<br>
&gt; *P *(+61) 3 8370 8000  *W* <a href="http://www.lisasoft.com" target="_blank">www.lisasoft.com</a>  *F *(+61) 3 8370 8099<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt; The contents of this email are confidential and may be subject to legal or<br>
&gt; professional privilege and copyright. No representation is made that this<br>
&gt; email is free of viruses or other defects. If you have received this<br>
&gt; communication in error, you may not copy or distribute any part of it or<br>
&gt; otherwise disclose its contents to anyone. Please advise the sender of your<br>
&gt; incorrect receipt of this correspondence.<br>
<br>
<br>
--<br>
Yugo Nagata &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;nagata@sraoss.co.jp&#39;)">nagata@sraoss.co.jp</a>&gt;<br>
</blockquote></div><br><br>-- <br><div style="color:#b8276a;font:bold 14px Arial,Helvetica,sans-serif">
        <br>
        <span style="color:#323b62">James Sewell,</span><br>
        <span style="color:#a9a9a9"><span style="font:12px Arial,Helvetica,sans-serif">PostgreSQL Team Lead / Solutions Architect </span></span><br>
        <span style="color:#a9a9a9">______________________________________</span><br>
         </div>
<img alt="" src="http://www.lisasoft.com/sites/lisasoft/files/u1/logo1.jpg" style="margin:0px;width:153px;height:50px"><br>
<div style="font:normal 12px/20px Arial,Helvetica,sans-serif;color:#404040;margin:0">
        <span style="color:#a9a9a9">Level 2, 50 Queen St, Melbourne VIC 3000</span><br>
        <br>
        <strong>P </strong><span style="color:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8000</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:#a9a9a9">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:#a9a9a9"><span style="font-family:Arial,Verdana,sans-serif">(+61) 3 8370 8099</span></span></div>

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

<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>