<div dir="ltr">Hello Tatsuo.<div>Thank you for your response.</div><div>Here is the version: pgpool-II version 4.2.1 (chichiriboshi)<br></div><div>Here is our config: <a href="https://pastebin.com/mHAdiZUU">https://pastebin.com/mHAdiZUU</a></div><div><br></div><div>Killing or restarting the process works but that is what we are trying to avoid since that requires manual intervention. I was wondering if we can identify the root cause and fix it so that human intervention is reduced. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 21, 2021 at 6:30 AM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
> Hello.<br>
> <br>
> We are running a small self-managed pgpool and postgres setup in Google<br>
> cloud. We have setup two Pgpools which connect to one primary and two<br>
> replica postgres setup.<br>
> <br>
> On more than one occasion, one of the pgpools has printed a "Broken pipe"<br>
> error and the backend went unreachable for that pgpool, while the other<br>
> pgpool was able to reach the backend postgres just fine. The bad pgpool<br>
> will only start working after a restart of the pgpool.<br>
> <br>
> I would really appreciate some help in understanding why this is happening<br>
> and what can be done to mitigate this issue.<br>
> <br>
> Log lines, are added below:<br>
> <br>
> Oct 19 13:05:31 pgpool-fdfv pgpool[935]: 2021-07-21 13:05:31: pid<br>
> 10003: LOG:  received degenerate backend request for node_id: 1 from<br>
> pid [10003]<br>
> Oct 19 13:05:31 pgpool-fdfv pgpool[935]: 2021-07-21 13:05:31: pid 935:<br>
> LOG:  Pgpool-II parent process has received failover request<br>
> Oct 19 13:05:31 pgpool-fdfv pgpool[935]: 2021-07-21 13:05:31: pid<br>
> 10003: WARNING:  write on backend 1 failed with error :"Broken pipe"<br>
> Oct 19 13:05:31 pgpool-fdfv pgpool[935]: 2021-07-21 13:05:31: pid<br>
> 10003: DETAIL:  while trying to write data from offset: 0 wlen: 5<br>
<br>
Can you please share the Pgpool-II version? Also sharing pgpool.conf<br>
is helpful (you can remove parameters you don't want to put in<br>
public).<br>
<br>
I wonder if the corresponding backend process is still alive or<br>
not. You can check it by using pcp_proc_info command. Once you<br>
identify the backend process, you can check PostgreSQL log what<br>
happend at that time.<br>
<br>
In the mean time you can kill the pgpool process to let the pgpool<br>
parent process to fork a new child process.<br>
<br>
kill -6 "pid" or kill -9 "pid"<br>
("pid" is 10003 in the case above)<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_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="text-align:-webkit-auto;color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><font face="Helvetica Neue" size="1"><b>ADITYA PATAWARI</b></font></div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><div style="text-align:-webkit-auto"><font face="Helvetica Neue" color="#929292" size="1">Devops Engineer</font></div><div style="text-align:-webkit-auto"><font face="HelveticaNeue-Light" color="#aaaaaa" size="1">—</font></div><div style="text-align:-webkit-auto"><b style="font-family:"Helvetica Neue";font-size:x-small;text-align:-webkit-auto">CareMessage | </b><u style="text-align:-webkit-auto;color:rgb(71,135,255);font-family:HelveticaNeue-Light;font-size:x-small"><a href="http://caremessage.org/" style="color:rgb(17,85,204)" target="_blank">caremessage.org</a></u></div><div style="text-align:-webkit-auto">M: +91-8310050990</div></span></div></div></div></div>