<div dir="ltr">hummm...<div>OK, thanks for information!</div><div>Very good.</div><div><br></div><div>Good luck!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/13 Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; No problem...<br>
&gt; If your active server is the number 2 then run the command (killall -9<br>
&gt; pgpool) himself.<br>
&gt; You will see that all processes die and the interface with the ip delegate<br>
&gt; will remain active. This is the case...<br>
<br>
</div>That is only applicatable to pgpool-II 3.2.<br>
<br>
3.3&#39;s watchdog monitors parent pgpool process is alive. If it&#39;s gone,<br>
release the ip and tells standby watchdog that it goes to &quot;down&quot;<br>
status.<br>
<div class="HOEnZb"><div class="h5">--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
&gt; 2013/8/13 Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt;<br>
&gt;<br>
&gt;&gt; &gt; You said: &quot;I killed server2 pgpool-II parent process by kill -9&quot;<br>
&gt;&gt; &gt; Try &quot;killall -9 pgpool&quot; in active server...<br>
&gt;&gt;<br>
&gt;&gt; Sorry for confusion but in my case server2 is the active.<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; The stand by will grow up the delegate IP and the same will still on old<br>
&gt;&gt; &gt; active server and will conflict.<br>
&gt;&gt; &gt; So I am using a shell script in crontab to check this and restart pgpool<br>
&gt;&gt; if<br>
&gt;&gt; &gt; necessary.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2013/8/12 Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; On 08/05/13 14:07, Fernando Buzon wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; FINAL:<br>
&gt;&gt; &gt;&gt; &gt;&gt; Like I said, all is working nice.<br>
&gt;&gt; &gt;&gt; &gt;&gt; And now I am with the 2 pgpools up and working again.<br>
&gt;&gt; &gt;&gt; &gt;&gt; The escaled pgpool is pgpool-01.<br>
&gt;&gt; &gt;&gt; &gt;&gt; I stop it with &quot;killall -9 pgpool&quot; and now wd_lifecheck worked fine<br>
&gt;&gt; on<br>
&gt;&gt; &gt;&gt; &gt;&gt; pgpool-02!<br>
&gt;&gt; &gt;&gt; &gt;&gt; I dont now what was the problem early, but now is working!<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Maybe you fix some small issue in the config during your testing.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; log on pgpool-02:<br>
&gt;&gt; &gt;&gt; &gt;&gt; 2013-08-05 17:52:42 LOG:   pid 11524: wd_lifecheck: lifecheck failed<br>
&gt;&gt; 3<br>
&gt;&gt; &gt;&gt; &gt;&gt; times. pgpool 1 (<a href="http://10.0.0.21:5432" target="_blank">10.0.0.21:5432</a> &lt;<a href="http://10.0.0.21:5432" target="_blank">http://10.0.0.21:5432</a>&gt;) seems not<br>
&gt;&gt; to<br>
&gt;&gt; &gt;&gt; be working<br>
&gt;&gt; &gt;&gt; &gt;&gt; 2013-08-05 17:52:42 LOG:   pid 11524: wd_escalation: escalated to<br>
&gt;&gt; &gt;&gt; master pgpool<br>
&gt;&gt; &gt;&gt; &gt;&gt; 2013-08-05 17:52:42 LOG:   pid 11524: wd_escalation:  escalated to<br>
&gt;&gt; &gt;&gt; &gt;&gt; delegate_IP holder<br>
&gt;&gt; &gt;&gt; &gt;&gt; 2013-08-05 17:52:52 LOG:   pid 11524: wd_lifecheck: lifecheck failed<br>
&gt;&gt; 3<br>
&gt;&gt; &gt;&gt; &gt;&gt; times. pgpool 1 (<a href="http://10.0.0.21:5432" target="_blank">10.0.0.21:5432</a> &lt;<a href="http://10.0.0.21:5432" target="_blank">http://10.0.0.21:5432</a>&gt;) seems not<br>
&gt;&gt; to<br>
&gt;&gt; &gt;&gt; be working<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; So rest only one problem, that is how to down delegate_ip from the<br>
&gt;&gt; &gt;&gt; pgpool-01?<br>
&gt;&gt; &gt;&gt; &gt;&gt; Because both servers is responding to delegate_ip.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Well, the reason it doesn&#39;t get removed on pgpool-01 is because the<br>
&gt;&gt; &gt;&gt; killall -9<br>
&gt;&gt; &gt;&gt; &gt; kills the pgpool processes including the watchdog without any hope of<br>
&gt;&gt; &gt;&gt; them<br>
&gt;&gt; &gt;&gt; &gt; running the ifconfig down command.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; That said, you just need to run the ifconfig down command on<br>
&gt;&gt; pgpool-01.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I&#39;m sure what you&#39;re trying to simulate is a crash, but I&#39;m not sure<br>
&gt;&gt; &gt;&gt; killing<br>
&gt;&gt; &gt;&gt; &gt; ALL the pgpool processes with -9 is a good simulation, because more<br>
&gt;&gt; &gt;&gt; likely<br>
&gt;&gt; &gt;&gt; &gt; only one of the backends would crash.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Maybe one of the other folks on the list can suggest a better<br>
&gt;&gt; simulation<br>
&gt;&gt; &gt;&gt; for a<br>
&gt;&gt; &gt;&gt; &gt; crashing pgpool service.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I have tried with pgpool-II 3.3.0 to test the case. Initially<br>
&gt;&gt; &gt;&gt; &quot;server2&quot; is the watchdog active, and &quot;server1&quot; is the watchdog<br>
&gt;&gt; &gt;&gt; &quot;standby&quot;.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I killed server2 pgpool-II parent process by kill -9.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; - server2 releases the VIP. server2 watchdog goes to &quot;down&quot; status.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; - server1 becomes active and grab the VIP.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So my guess is, 3.2&#39;s watchdog is not capable to handle the situation.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Pgpool-II 3.3&#39;s watchdog is much more enhanced than 3.2&#39;s. I recommend<br>
&gt;&gt; &gt;&gt; to use 3.3 if you want to seriously use watchdog.<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Tatsuo Ishii<br>
&gt;&gt; &gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; &gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; &gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div>