<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 6:08 PM, Jose Baez <span dir="ltr">&lt;<a href="mailto:pepote@gmail.com" target="_blank"><span class="" id=":4pd.15" tabindex="-1">pepote</span>@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><i><font color="#990000"><span style="font-size:12.8px">&gt; And when the </span><span style="font-size:12.8px;background-color:rgb(255,255,255)">pgpool</span><span style="font-size:12.8px">-II are </span><span style="font-size:12.8px">configured to use </span><span style="font-size:12.8px;background-color:rgb(255,255,255)">watchdog</span><span style="font-size:12.8px">, All </span><span style="font-size:12.8px;background-color:rgb(255,255,255)">pgpool</span><span style="font-size:12.8px">-II connected with </span><span style="font-size:12.8px;background-color:rgb(255,255,255)">watchdog</span></font></i><div><i><font color="#990000">&gt; <span style="font-size:12.8px">exchanges the node status when ever the any backend node status is</span> <span style="font-size:12.8px">changed.</span></font></i></div><div><span style="font-size:12.8px"><i><font color="#990000">&gt;</font></i></span></div><div><span style="font-size:12.8px"><br></span></div></span><div><span style="font-size:12.8px">If I use 2 pgpool instances <b>without watchdog</b> (only 1 of them is active and running), could I use a NFS network folder to save the &quot;pgpool_status&quot; file ?</span></div><div><span style="font-size:12.8px">So when the second instance is running in a second machine, it will read the same pgpool_status file (with same owner, permissions, and so on...) ?</span></div></div></blockquote><div><br></div><div>Yes theoretically you can do that. But since the <span class="" id=":4pd.16" tabindex="-1">pgpool</span>-II only reads the node status information at the time of start-up so it will not be any useful to sync the <span class="" id=":4pd.17" tabindex="-1">runtime</span> node statuses among multiple pgpool-II nodes.</div><div><br></div><div>Regards</div><div>Muhammad Usama</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 15 February 2016 at 18:39, Muhammad Usama <span dir="ltr">&lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Aug 2, 2015 at 7:20 PM, Thomas Bach &lt;<a href="mailto:t.bach@ilexius.de" target="_blank">t.bach@ilexius.de</a>&gt; wrote:<br>
&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; Hash: SHA256<br>
&gt;<br>
&gt; Hi there,<br>
&gt;<br>
&gt; I configured pgpool-IIpgpool-II version 3.3.2 (tokakiboshi) and<br>
&gt; Postgres to run on two separate machines in replication mode. I just<br>
&gt; recently configured watchdog. At some point the two databases diverged<br>
&gt; which is ok because I am currently in the testing phase.<br>
&gt;<br>
&gt; Now on host02 I query watchdog and obtain<br>
&gt;<br>
&gt; host02 # pcp_watchdog_info -v 1 host01 9898 root ****<br>
&gt; Hostname     : host01<br>
&gt; Pgpool port  : 5432<br>
&gt; Watchdog port: 9000<br>
&gt; Status       : 2<br>
&gt; host02 # pcp_watchdog_info -v 1 host02 9898 root ****<br>
&gt; Hostname     : host02<br>
&gt; Pgpool port  : 5432<br>
&gt; Watchdog port: 9000<br>
&gt; Status       : 3<br>
&gt;<br>
&gt; So host02 is active. I obtain the exact same results when issuing<br>
&gt; these queries from host01.<br>
<br>
pcp_watchdog_info utility displays the information of pgpool-II<br>
watchdog node, So if the pgpool-II watchdog<br>
cluster is configured and working without any problem, executing the<br>
pcp_watchdog_info on any pgpool-II node<br>
should always displays the same results for all pgpool-II nodes in the cluster.<br>
&gt;<br>
&gt; Anyway, when querying pcp_node_info I obtain the following:<br>
&gt;<br>
&gt; host02 # pcp_node_info -v 1 host01 9898 root **** 0<br>
&gt; Hostname: host01<br>
&gt; Port    : 5433<br>
&gt; Status  : 1          &lt;----------------------<br>
&gt; Weight  : 1.000000<br>
&gt; host02 # pcp_node_info -v 1 host01 9898 root **** 1<br>
&gt; Hostname: host02<br>
&gt; Port    : 5433<br>
&gt; Status  : 1<br>
&gt; Weight  : 0.000000<br>
&gt; host02 # pcp_node_info -v 1 host02 9898 root **** 0<br>
&gt; Hostname: host01<br>
&gt; Port    : 5433<br>
&gt; Status  : 3         &lt;----------------------<br>
&gt; Weight  : 0.000000<br>
&gt; host02 # pcp_node_info -v 1 host02 9898 root **** 1<br>
&gt; Hostname: host02<br>
&gt; Port    : 5433<br>
&gt; Status  : 1<br>
&gt; Weight  : 1.000000<br>
&gt;<br>
<br>
As pcp_node_info utility displays the status of Backend (PostgreSQL)<br>
nodes connected with the pgpool-II. And when the pgpool-II are<br>
configured to use watchdog, All pgpool-II connected with watchdog<br>
exchanges the node status when ever the any backend node status is<br>
changed. So agin when the pgpool-II watchdog is configured and working<br>
correctly, All pgpool-IIs in the cluster should have the same status<br>
of backend node. But there is some problem with your setup or in<br>
pgpool-II since pgpool-II on Host1 and Host2 are showing different<br>
status for node 0 which should never happen, Analyzing the pgpool-II<br>
logs of both pgpool-II would be helpful in the situation to analyze<br>
why pgpool-II on host02 thinks the status of PostgreSQL node 0 is down<br>
and what error caused this status not to get replicated with pgpool-II<br>
on host01.<br>
<br>
&gt; So, as host02 sees it, host01 is down. But for host01 both itself as<br>
&gt; well as host02 are perfectly sane.<br>
&gt;<br>
&gt; 1) Is such a state intended? I.e. is pgpool-II fully operational in<br>
&gt; this mode?<br>
<br>
This is not intended and indicates a problem in pgpool-II or the<br>
setup. pgpool-II logs would be helpful to locate the actual problem.<br>
&gt;<br>
&gt; 2) What will happen when I do an insert via host02? Will it replicate<br>
&gt; to host01?<br>
&gt;<br>
&gt; 3) And even more interesting: what will happen when I do an insert via<br>
&gt; host01?<br>
&gt;<br>
<br>
Both pgpool-II (on host01, and host02) will behave according to their<br>
local view of the PostgreSQL backend node statuses.<br>
<br>
&gt; 4) What ways do I have at hand to resolve this issue?<br>
<br>
As described above, analyzing the pgpool-II log will give more details<br>
about the cause of the problem and a way to rectify it.<br>
<br>
<br>
Thanks<br>
Kind regards<br>
Muhammad Usama<br>
<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt;         Thomas.<br>
&gt;<br>
&gt; - --<br>
&gt; ilexius GmbH<br>
&gt; Thomas Bach<br>
&gt; Unter den Eichen 5<br>
&gt; Haus i<br>
&gt; 65195 Wiesbaden<br>
&gt; Fon: <a href="tel:%2B49-%280%29611%20-%20180%2033%2049" value="+496111803349" target="_blank">+49-(0)611 - 180 33 49</a><br>
&gt; Fax: <a href="tel:%2B49-%280%29611%20-%20236%2080%2084%2029" value="+49611236808429" target="_blank">+49-(0)611 - 236 80 84 29</a><br>
&gt; - -------------------------------------<br>
&gt; ilexius GmbH<br>
&gt; vertreten durch die Geschäftsleitung:<br>
&gt; Thomas Schlüter und Sebastian Koch<br>
&gt; Registergericht: Wiesbaden<br>
&gt; Handelsregister: HRB 21723<br>
&gt; Steuernummer: 040 236 22640<br>
&gt; Ust-IdNr.: DE240822836<br>
&gt; - ------------------------------------<br>
&gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; Version: GnuPG v2<br>
&gt;<br>
&gt; iQIcBAEBCAAGBQJVvicdAAoJEOpECs8ANDYkIrgP/0YW62GF3FuATWbEtwfomo8w<br>
&gt; o03nFvUnklTLKSFkF1Au9fKU4YIE+Ifm868rWlotW50mL7qbIy3hS+uyV/7sFOUW<br>
&gt; 87f7bGWrKvI9G73a+5c8002cTzA7te7CQr7T2gxsWAunOpcZFsN5FTAtuXp7HF35<br>
&gt; A+5yKsofnCyeH1ZKuWBpMIhoaaDbuzVC1HBjBw4duDsAQUR97lKsq6UikJ9DXLhz<br>
&gt; ii8YeRiFXX15uRkn1YCajcdS3n6R8GXUfYnuhYOiYu7/WDI1sIghppQQlEYvCqmJ<br>
&gt; pn4er4nuzd+Mlk/VJ/A3zb6Kds3fxhOBvlWWC8KUVWWm+Os2+AA1Xaihv7rTZBHd<br>
&gt; LVzRzdoi+5TCQ4MfYXMCBKDqGLjaOwN7/3R++KNVkR6kBR5XrTDztcCoHRzy6ILs<br>
&gt; R1T6WSzVD23bkybMHGSadZtL+5apy2cZ1X2WZo+jlFrXsLWpCNgIKSJyfxo5u1+8<br>
&gt; 1brCox7oO/VLdJCJo/TJO68yK5MAqil2aERuxul3VKGGvtWddZZD+3llf2mQRLnj<br>
&gt; F+Ydj+2i85/GXKmPQKg/aR17GDNTvEaK3gWLUTA4Xo429OtcF60OSx9ZPgc3n0yQ<br>
&gt; 6P6iGOOsCE1YQytuolKERhNrgrbIzNGLwdvTAVrarQ73PUfspaj12dyNlwD6V2zG<br>
&gt; Nbg5FB677iGWkLn+DYQA<br>
&gt; =k6TH<br>
&gt; -----END PGP SIGNATURE-----<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; pgpool-general mailing list<br>
&gt; <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt;<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
<br></blockquote></div><br></div></div>