<div dir="ltr"><div>Thanks Bo</div><div>So the following would be expected where I have 4 backend databases<br></div><div><br></div><div>config</div><div></div><div>
num_init_children = 25<br>max_pool = 4 

</div><div></div><div><br></div><div>Database_A : active connects 25</div><div>Database_B: connections blocked</div><div>Database_C: connections blocked</div><div>Database_D: connections blocked<br></div><div><br></div><div>My expectation based on the docs would be that I have 25 forked processes per max_pool (4x25), 100 connections available in total.</div><div><br></div><div>Regards <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 2 Jun 2022 at 00:21, Bo Peng <<a href="mailto:pengbo@sraoss.co.jp">pengbo@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>
> Hi all,<br>
> <br>
> I'm using pgpool v3.4.3 and have the following setup<br>
> <br>
> num_init_children = 25<br>
> max_pool = 4<br>
> <br>
> >From my understanding this would allow for 4 unique db user combinations<br>
> each with 25 preforked processes / connections.  I have noticed that when<br>
> the num_init_childern process count is reached for one unique combination<br>
> (db_a) it will block / slow down connections to db_b which have not reached<br>
> that limit.<br>
> <br>
> We are using pgbouncer in front of pgpool which is creating persistent<br>
> connections which could be part of the problem.<br>
> <br>
> Could I be right<br>
<br>
It is the expected behavior.<br>
<br>
Pgpool-II accepts requests up to "num_init_children".<br>
If num_init_children is reached, the subsequent request will be blocked<br>
until any other connections is closed<br>
<br>
<a href="https://www.pgpool.net/docs/latest/en/html/runtime-config-connection.html#GUC-NUM-INIT-CHILDREN" rel="noreferrer" target="_blank">https://www.pgpool.net/docs/latest/en/html/runtime-config-connection.html#GUC-NUM-INIT-CHILDREN</a><br>
-- <br>
Bo Peng <<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>><br>
SRA OSS, Inc. Japan<br>
<a href="http://www.sraoss.co.jp/" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/</a><br>
</blockquote></div>