<div dir="ltr">Hi,<div><br></div><div>I&#39;ve the following scenario:</div><div><br></div><div>Master is running in a physical host_1 and two readable Slaves are running in the physical host_2 and host_3 respectively. The scenario is configured with Asynchronous streaming replication using a Physical Replication Slot.</div><div><br></div><div>I&#39;m trying to have the following:</div><div><br></div><div>(a) Be able to serve 12 concurrent connections in host_1 (i.e. Master). It is because that is approximately the number of concurrent writes that I have. The server has 6 cores and 2 SDDs.</div><div><br></div><div>(b) Be able to serve 30 concurrent connections in host_2 and host_3 (i.e. 30 in each host). I&#39;ve around 60 concurrent reads, and each server is having 12 cores and 2 SDDs.</div><div><br></div><div>The questions I have are the following:</div><div><br></div><div>**************</div><div>1. In order to try to redirect most of the reads to host_2 and host_3, I have set &quot;weight&quot; for host_1 to 1, &quot;weight&quot; for host_2 to 2 and &quot;weight&quot; for host_3 to 2.  Is it OK?</div><div><br></div><div>**************<br></div><div>2. How do I need to configure &quot;max_pool&quot; and &quot;num_init_children&quot; in order to have (a) and (b)?</div><div><br></div><div>I suppose that the needed configuration is &quot;num_init_children&quot; = 75 (12 + 30 + 30), and &quot;max_pool&quot; =1 (because the application is using 1 user -db_usr- and it is connecting to the same database -my_db-).</div><div><br></div><div>What I don&#39;t have clear is if the pair {num_init_children, max_pool} is applied as a whole to all the Postgres server behind of pgpool (i.e. host_1, host_2 and host_3), or it is applied to each Postgres server behind of pgpool. Then in the last case, I will need to set &quot;num_init_children&quot; = 30 and &quot;max_pool&quot; =1.<br></div><div>**************<br></div><div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>