<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">But that’s the issue - pgpool didn’t perform a failover.<br />
<br />
It just said this and then gave up:<br />
2022-02-04 16:48:53: pid 9: LOG: ignoring the failover request, since we are still starting up</div>
</div>
<div name="messageReplySection">On 6 Feb 2022, 2:32 AM +0100, Tatsuo Ishii <ishii@sraoss.co.jp>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">But after starting up pgpool will detect that the primary went down by<br />
health check and perform failover anyway, no?<br />
<br />
<blockquote type="cite">Thank you Tatsuo for your reply but can’t pgpool setup the other resources regardless of the primary being up and then perform the failover?<br />
<br />
I need this behaviour because I cannot pgpool in cluster mode due to infrastructure limitations.<br />
<br />
Cheers<br />
<br />
Anirudh<br />
On 6 Feb 2022, 1:51 AM +0100, Tatsuo Ishii <ishii@sraoss.co.jp>, wrote:<br />
<blockquote type="cite">
<blockquote type="cite">Hello<br />
<br />
I have a setup with 1 pgpool and 2 postgresql primary-replica nodes.<br />
<br />
I am testing a certain scenario - what if the pgpool goes down, then the primary goes down and then the pgpool comes back up.<br />
<br />
I was expecting that pgpool would perform a failover after it comes back up but instead it says this:<br />
2022-02-04 16:48:53: pid 9: LOG: Pgpool-II parent process has received failover request<br />
2022-02-04 16:48:53: pid 9: LOG: ignoring the failover request, since we are still starting up<br />
<br />
So my question is, is there a parameter or some way that we can tell pgpool to perform a failover if the primary is down while pgpool is starting up?<br />
<br />
I tried looking at the code but according to https://github.com/pgpool/pgpool2/blob/master/src/main/pgpool_main.c#L1329, I don¢t see a parameter other than processState.<br />
<br />
Is there a logical reason why pgpool cannot/won't perform a failover during startup?<br /></blockquote>
<br />
Because pgpool needs to setup various resouses including shared memory<br />
and others for managing failover.<br />
<br />
Best reagards,<br />
--<br />
Tatsuo Ishii<br />
SRA OSS, Inc. Japan<br />
English: http://www.sraoss.co.jp/index_en.php<br />
Japanese:http://www.sraoss.co.jp<br /></blockquote>
</blockquote>
</blockquote>
</div>
</body>
</html>