<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Helvetica Neue";
        panose-1:2 0 5 3 0 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Did you enable watchdog? You need to have watchdog enable, All your connection string need to point to the watchdog port you set in pgpool.conf
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Pierre Timmermans &lt;ptim007@yahoo.com&gt;<br>
<b>Date: </b>Sunday, June 24, 2018 at 1:54 PM<br>
<b>To: </b>Wolfgang Schwurack &lt;wolf@uen.org&gt;, Andre Piwoni &lt;apiwoni@webmd.net&gt;<br>
<b>Cc: </b>&quot;pgpool-general@pgpool.net&quot; &lt;pgpool-general@pgpool.net&gt;<br>
<b>Subject: </b>Re: [pgpool-general: 6131] Re: PgPool in streaming replication mode without failover and primary down<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">I cannot get this to work neither, I tried various combination of parameters. Once the primary is stopped pgpool does not accept connections at all.&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">In particular, if I set the failover_command to '' (empty string) then when the primary is stopped pgpool starts searching for a new primary (find_primary_node: checking backend
 no x repeated in the log) but in the meantime it does not accept connections.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">Another solution to this problem is to not use pgpool but use a connection string of the form<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">postgresql://user:secret@host1:5432;host2:5432/somedb?target_session_attrs=any<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><a href="https://paquier.xyz/postgresql-2/postgres-10-libpq-read-write/" target="_blank">https://paquier.xyz/postgresql-2/postgres-10-libpq-read-write/</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">but I am not sure all clients support this format (the nodejs pg-node does not).&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;">Pierre<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
<div id="ydp981e2c0byahoo_quoted_0540816913">
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">On Wednesday, June 20, 2018, 5:50:06 PM GMT&#43;2, Andre Piwoni &lt;apiwoni@webmd.net&gt; wrote:
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<div id="ydp981e2c0byiv8782646484">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">Wolf,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">Do you mind sharing relevant configuration and version of pgpool you are using? Do you have more than one slave?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">I have tried the following combinations:
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">backend_flag0 = 'ALWAYS_MASTER|DISALLOW_TO_FAILOVER'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">backend_flag1 = 'DISALLOW_TO_FAILOVER'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A;background:white">backend_flag0 = 'ALWAYS_MASTER'</span><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A;background:white">backend_flag1 = 'DISALLOW_TO_FAILOVER'</span><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A;background:white">backend_flag0 = 'ALWAYS_MASTER'</span><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A;background:white">backend_flag1 = 'ALLOW_TO_FAILOVER'</span><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">master_slave_mode = on<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">master_slave_sub_mode = 'stream'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">sr_check_period = 0 and default&nbsp;sr_check_period = 10<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">health_check_period = 0<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">failover_command = ''<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">fail_over_on_backend_error = off and&nbsp;fail_over_on_backend_error = on<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
<div id="ydp981e2c0byiv8782646484yqtfd09636">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">On Wed, Jun 20, 2018 at 8:40 AM, Wolf Schwurack &lt;<a href="mailto:wolf@uen.org" target="_blank">wolf@uen.org</a>&gt; wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">Yes it is possible I have all my Pgpool hosts setup that way. My setup is a streaming replica and I don't apply the failover.sh script. If the master goes down pgpool
 fails over to the standby in readonly mode. <br>
<br>
<br>
Wolfgang Schwurack<br>
Database/System Administrator<br>
Utah Education Network<br>
801-587-9444<br>
<a href="mailto:wolf@uen.org" target="_blank">wolf@uen.org</a><o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">&nbsp;<br>
<br>
<br>
On 6/19/18, 9:48 PM, &quot;<a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@ pgpool.net</a> on behalf of Bo Peng&quot; &lt;<a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@ pgpool.net</a>
 on behalf of <a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt; wrote:<br>
<br>
&nbsp; &nbsp; Which version of Pgpool-II do you use?<br>
&nbsp; &nbsp; It also happened by latest version of Pgpool-II 3.7.4?<br>
<br>
&nbsp; &nbsp; On Tue, 19 Jun 2018 20:00:58 -0700<br>
&nbsp; &nbsp; Andre Piwoni &lt;<a href="mailto:apiwoni@webmd.net" target="_blank">apiwoni@webmd.net</a>&gt; wrote:<br>
<br>
&nbsp; &nbsp; &gt; I have been trying to figure how can I configure PgPool with one primary<br>
&nbsp; &nbsp; &gt; and one hot-standby slave to route read-requests to hot-standby when<br>
&nbsp; &nbsp; &gt; primary is down without any failover. Is it currently possible? Please<br>
&nbsp; &nbsp; &gt; don't ask why.<br>
&nbsp; &nbsp; &gt; <br>
&nbsp; &nbsp; &gt; Thank you,<br>
&nbsp; &nbsp; &gt; Andre Piwoni<br>
<br>
<br>
&nbsp; &nbsp; -- <br>
&nbsp; &nbsp; Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
&nbsp; &nbsp; SRA OSS, Inc. Japan<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">&nbsp; &nbsp; ______________________________ _________________<br>
&nbsp; &nbsp; pgpool-general mailing list<br>
&nbsp; &nbsp; <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
&nbsp; &nbsp; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">
http://www.pgpool.net/mailman/ listinfo/pgpool-general</a><br>
<br>
<o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
</div>
</div>
<div id="ydp981e2c0byqtfd74630">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Helvetica Neue&quot;;color:#26282A">_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>