<div dir="ltr">i think it does not work...<div><br></div><div><br></div><div><span style="color:rgb(51,102,153);font-family:monospace;font-size:13px"><span><a href="http://172.16.62.141/status.php" style="color:rgb(51,102,153);text-decoration:none" target="_blank">http://172.16.62.141/status.php</a></span></span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">         </span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">IP Address         Port         Status         Weight</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">                 </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 0         tad1         5432         Up. Connected. Running as primary server         postgres: Up         0.500                 |</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 1         tad2         5432         Up. Connected. Running as standby server         postgres: Up         0.500                 |</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)"> </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"><span style="color:rgb(51,102,153);font-family:monospace;font-size:13px"><span><a href="http://172.16.62.142/status.php" style="color:rgb(51,102,153);text-decoration:none" target="_blank">http://172.16.62.142/status.php</a></span></span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">         </span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">IP Address         Port         Status         Weight</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">                 </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 0         tad1         5432         Up. Connected. Running as primary server         postgres: Up         0.500                 |</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 1         tad2         5432         Up. Connected. Running as standby server         postgres: Up         0.500                 |</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)"> </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">shutdown  141, node0, tad1...</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">


<br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"></div><div>i attach logs....</div>

<div><br></div><div><br></div><div>this was the final result....</div><div><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">---&gt;</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">

<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">         </span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">IP Address         Port         Status         Weight</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">                 </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">

<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 0         tad1         5432         Down         postgres: Down         0.500                 |</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">

<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">node 1         tad2         5432         Up. Connected. Running as standby server         postgres: Up         0.500                 |</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)"> </span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">

<span style="color:rgb(51,51,51);font-family:monospace;font-size:13px;background-color:rgb(253,253,253)">&lt;---</span><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px"><br style="color:rgb(51,51,51);font-family:monospace;font-size:13px">

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 12, 2014 at 4:11 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Thanks for sending confs &amp; logs.<br>
<br>
I found that this problem occurs when load_balance_mode = off.<br>
Could you please try with load_balance_mode = on?<br>
<br>
I&#39;ll continue to analyze the detailed reason.<br>
<br>
On Mon, 10 Feb 2014 11:40:41 -0200<br>
<div class="HOEnZb"><div class="h5">Gonzalo Gil &lt;<a href="mailto:gonxalo2000@gmail.com">gonxalo2000@gmail.com</a>&gt; wrote:<br>
<br>
&gt; i send the message but it was too long.<br>
&gt; i&#39;ll attach the files....<br>
&gt;<br>
&gt; it happens again, even when node 2 was the postgres standby node.<br>
&gt;<br>
&gt; after i put the logs here, i shutdown node 1 (it has the primary database)<br>
&gt; and it happens the same thing. node 2 lost ip and no failover happens.<br>
&gt;<br>
&gt;<br>
&gt; TKS!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 10, 2014 at 5:23 AM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; This is odd that pgpool-1 losts VIP when server2 goes down. For analysis,<br>
&gt; &gt; could you please send pgpool.conf and log output (of both pgpool1 and<br>
&gt; &gt; pgpool2)?<br>
&gt; &gt;<br>
&gt; &gt; On Tue, 4 Feb 2014 13:38:16 -0200<br>
&gt; &gt; Gonzalo Gil &lt;<a href="mailto:gonxalo2000@gmail.com">gonxalo2000@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hello Tatsuo Ishii. I send some query mails to<br>
&gt; &gt; &gt; pgpool-general@pgpool.netbut i don&#39;t get my own messagese. But i do<br>
&gt; &gt; &gt; recieve other mails from the<br>
&gt; &gt; &gt; forum.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Can you answer me some questions or forward them to the forum!?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;m runing pgpool with streaming replication: pgpool1 - db postgres1<br>
&gt; &gt; &gt; (server 1) and pgpool2 - db postgres 2 (server 2).<br>
&gt; &gt; &gt; I&#39;m using watchdog with a virtual ip and life_check_query.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; It&#39;s all configured and working .... more or less....<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; INIT: I start my system: postgres1 is standby database and postgres2<br>
&gt; &gt; &gt; is master (streaming replication).<br>
&gt; &gt; &gt; pgpool1 has the virtual ip.(and pgpool2 no, obviously)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i connect to database via pgpool and everithing is ok.<br>
&gt; &gt; &gt; i stop postgres1 and nothing happens because i check new_master &lt;&gt;<br>
&gt; &gt; &gt; old_master (no master failure).<br>
&gt; &gt; &gt; i start postgres1 again (and returning it with pgpoolAdmin) or call a<br>
&gt; &gt; &gt; recovery and it works great.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I stop postgres2 and failover fires ... and i get postgres1 as the new<br>
&gt; &gt; &gt; primary.<br>
&gt; &gt; &gt; and so on...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; this works fine.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i go back to INIT again....<br>
&gt; &gt; &gt; and i do in server2<br>
&gt; &gt; &gt; reboot -h now<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i see in the server1 (pgpool1) log that pgpool2 is down...ok<br>
&gt; &gt; &gt; watching the log, i see pgpool1 lost the virtual ip address (!?)....and<br>
&gt; &gt; &gt; tell me to restart pgpool....(!?)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i restart it and i see that failover fires ... but in the failover<br>
&gt; &gt; script i<br>
&gt; &gt; &gt; get new_master_node = old_master_node ...and thus i do not make touch and<br>
&gt; &gt; &gt; postgres1 keeps as a standby...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I change failover.sh (and the command in the pgpool.conf). i include all<br>
&gt; &gt; &gt; parameters to see it&#39;s values when failover.sh start....<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Then, i restart serve2 and &quot;return&quot; database to pgpool....<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; again, pgpool1 has the virtual ip.<br>
&gt; &gt; &gt; i stop database in node 2 and failover fires.... but pgpool2 does<br>
&gt; &gt; it....and<br>
&gt; &gt; &gt; pgpool1 too (!?)<br>
&gt; &gt; &gt; i check network activity and saw that pgpool2 connects to server1 and<br>
&gt; &gt; make<br>
&gt; &gt; &gt; the touch and i did see log from pgpool1 firing the failover command<br>
&gt; &gt; too....<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cuestions....<br>
&gt; &gt; &gt; 1. why pgpool1 lost virtual ip and ask me to restart!?<br>
&gt; &gt; &gt; 2. why pgpool2 fires failover? i thought just the &quot;primary&quot; pgpool (the<br>
&gt; &gt; one<br>
&gt; &gt; &gt; with the virtual ip) fires it.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i hope you understand mr.<br>
&gt; &gt; &gt; tks a lot for your time..<br>
&gt; &gt; &gt; sorry for my english.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt;<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</font></span></blockquote></div><br></div>