<div dir="rtl"><div style="" dir="ltr">No, I didnt check the status via "show pool_nodes". To be honest it isnt the first time it happens. Does there a difference between show_pool_nodes and pcp_node info on the deeper level ? I mean I know that show_pool_nodes queries a view or a table, what about pcp_node_info ? I dont think that it is related to repmgr..</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2018-05-06 16:49 GMT+03:00 Tatsuo Ishii <span dir="ltr"><<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Hi,<br>
> I have 3 postgres servers (one primary + 2 standbys) that have replciation<br>
> configured with repmgr:<br>
> pg1 - standby<br>
> pg2 - primary<br>
> pg3 - standby<br>
> <br>
> I have also 2 pgpool servers(v 3.7.2 and on each one there is one pool<br>
> instance. There isnt any watchdog, instead I have a vip address that<br>
> directs the requests to the available pgpool instance. I configured my own<br>
> metrics that check the status of the database nodes via the pcp interface.<br>
> <br>
> Today at 11:25 suddenly I got an alert that both my pgpools saw that the<br>
> primary node is down (via pcp). I connected and checked and indeed the<br>
> primary was down :<br>
> [postgres@pool2 log]$ pcp_node_info -h localhost -U postgres -p 9898 1 -w<br>
> pg2 5432 2 0.333333 down standby<br>
> <br>
> I checked it in both pools and the same result. I immediatly attached them<br>
> and it worked. I wanted to understand why it happened but I dont see any<br>
> error in the logs. I attach the logs of both my pools. Can you help me<br>
> identify the problem ?<br>
<br>
</span>No idea. I have never seen PostgreSQL is detached without any trace in<br>
pgpool log. Have you seen the node status using "show pool_nodes"? If<br>
not, I suspect there's a bug with pcp_node_info. If you tried "show<br>
pool_nodes" and saw the same status as pcp_node_info, then I<br>
completely lose idea.<br>
<br>
There may be a interaction with repmgr, but I am not familiar with<br>
repmgr and this is just a wild guess.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
</blockquote></div><br></div>