Thanks!<div><br></div><div>I&#39;ll upgrade ASAP.</div><div><br></div><div>I suppose my main question is does PGPool support noticing a node has come back (after setting a status of 3) and re-enabling it?</div><div><br></div><div>The more I think about this the more I doubt it, as it would then have to differentiate between user disabled and failure disabled. It would also not make much sense.</div><div><br></div><div>Ideally I want PGPool to constantly look for a master and a slave (which may swap) and <span></span>any time they are available enable them, any time they are not disable them.</div><div><br></div><div>But maybe I can&#39;t have that without my own scripts.</div><div><br></div>Cheers,<div><br><div>James Sewell <br><div><br></div><br><div><br></div><div>Thanks for the help.</div><div><br></div><div>Cheers,</div><div>James<br><br>On Monday, 16 March 2015, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; Hey,<br>
&gt;<br>
&gt; I am using PGpool on an AWS instance with the following settings:<br>
&gt;<br>
&gt; backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt; backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt; failover_command = &#39;&#39;<br>
&gt; failback_command = &#39;&#39;<br>
&gt; fail_over_on_backend_error = off<br>
&gt;<br>
&gt; I am managing failovers from an external product (EDB Enterprise Failover<br>
&gt; Manager). This seems to work well most of the time.<br>
&gt;<br>
&gt; Sometimes I get the master node failing because of the AWS network flaking<br>
&gt; out on me, this works as expected and I get into the following state:<br>
&gt;<br>
&gt; postgres=# show pool_nodes;<br>
&gt;  node_id |   hostname   | port | status | lb_weight |  role<br>
&gt; ---------+--------------+------+--------+-----------+---------<br>
&gt;  0       | 10.51.9.174  | 5432 | 3      | 0.500000  | primary<br>
&gt;  1       | 10.51.10.173 | 5432 | 2      | 0.500000  | standby<br>
&gt; (2 rows)<br>
&gt;<br>
&gt; My question is, is there any way in PGPool to automatically re-enable the<br>
&gt; primary node when it shows up again? If it *really* went down then my EFM<br>
&gt; would fail it over (which runs pcp_promote_node) - so I just want it to<br>
&gt; enable it when it shows up again. I can&#39;t explain why EFM seems to be more<br>
&gt; fault tolerant than PGPool - but I&#39;m ignoring that for now.<br>
<br>
That&#39;s depending on what is &quot;really went down&quot;. You can configure<br>
pgpool-II&#39;s parameters for example &quot;the servers goes down if pgpool-II<br>
retries three times and still the access fails&quot;.<br>
<br>
&gt; I tried using DISALLOW_TO_FAILOVER , but this removes any way of disabling<br>
&gt; a single node and stops all PGPool access when I stop the standby node.<br>
&gt; This won&#39;t work for me. I need to be able to perform the following<br>
&gt; operations:<br>
&gt;<br>
&gt;    - promote a node in PGPool to master (I use pcp_promote_node currently)<br>
&gt;    - disable a node in PGPool (I use pcp_detach_node currently)<br>
&gt;    - enable a node I have disabled (I use pcp_enable_node currently)<br>
&gt;    - Operate on just the master node<br>
&gt;    - Operate on just the slave node (read only)<br>
<br>
Some of these requirements conflict each other. For example:<br>
<br>
- promote a node to master<br>
- operate on just the slave node<br>
<br>
That says you need to tell pgpool-II when you want promote and when<br>
you don&#39;t want.<br>
<br>
So it seems it&#39;s not matter of technical things, rather the definition<br>
of requirements. Once your requirement becomes cleaner, probably you<br>
could create you own failover command which handles such that complex<br>
requirement.<br>
<br>
&gt; I can&#39;t seem to find a way to hit all these and still have a functioning<br>
&gt; environment.<br>
&gt;<br>
&gt; I&#39;m getting the feeling that maybe I can&#39;t get all this from PGPool, but<br>
&gt; any help would be appreciated. I&#39;m on PGPool 3.3.1<br>
<br>
pgpool-II 3.3.1 is too old.<br>
<br>
&gt; Cheers,<br>
&gt;<br>
&gt;<br>
&gt; James Sewell,<br>
&gt; PostgreSQL Team Lead / 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>
</blockquote></div></div></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>