<div dir="auto"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Tatsuo, thank you for your feedback.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The main requirement is to separate the 4 PG instances on every node, mainly for performance and management reasons.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So it seems that the only solution is to have 4 pgpool instances for every node, right? <br></div><div class="gmail_default" style="font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-size:small" dir="auto">Thanks </div><div class="gmail_default" style="font-size:small" dir="auto">Best regards </div><div class="gmail_default" style="font-size:small" dir="auto">Luca </div><div class="gmail_default" style="font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-size:small"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 26, 2021 at 3:56 AM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp" target="_blank" rel="noreferrer">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">> Hello,<br>
> <br>
> we are setting up a 3 nodes clusters similar to this one:<br>
> <br>
> <a href="https://www.pgpool.net/docs/latest/en/html/example-cluster.html" rel="noreferrer noreferrer" target="_blank">https://www.pgpool.net/docs/latest/en/html/example-cluster.html</a><br>
> <br>
> we are using CentOS 7.9 physical nodes with PGPool 4.2 and PostgreSQL 12.<br>
> <br>
> We need to have on every node 4 PostgreSQL instances (1 for prod, 1 for<br>
> pre-production, 1 for test and 1 for dev), all of them must be in streaming<br>
> replication with the other 2 nodes.<br>
> <br>
> Can PGPool manage such configuration? From the documentation we didn't find<br>
> any reference.<br>
> We are thinking to create 4 different pgpool instances, each one with its<br>
> set of files and tcp port, is this a supported configuration?<br>
<br>
The short answer is no.<br>
<br>
Pgpool-II assumes that there's only one streaming replication primary<br>
server exists among PostgreSQL instances. That means:<br>
<br>
Suppose you have following PostgreSQL instances:<br>
<br>
"A" group for "prod": A1, A2, A3<br>
<br>
Pgpool-II can manage A1, A2 and A3, assuming that one of A1, A2,<br>
A3 is the primary server and rest of it are standby servers.<br>
<br>
Similary:<br>
"B" group for "pre-production": B1, B2, B3<br>
<br>
Pgpool-II can manage B1, B2 and B3, assuming that one of B1, B2,<br>
B3 is the primary server and rest of it are standby servers.<br>
<br>
*BUT* a Pgpool-II instance cannot manage A group and B group altogeter<br>
at the same time.<br>
<br>
So it seems you have 4 groups of PostgreSQL instances (prod,<br>
pre-production, test and dev), you can manage each group by assigning<br>
4 Pgpool-II instances to each. In this case each Pgpool-II instance is<br>
completely separated and will not communicate each other. I am not<br>
sure what you can achieve in this configuration.<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 noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div>