<div dir="ltr">Hi Kent<div><br></div><div>Do you mean number of open connections from pgpool to DB or the subset of these connections that are currently hold by active clients?<div><br></div><div>Both you can get from pool_pools. Every raw with backend_id is an existing connection between pgpool and one of the DB nodes. If the last field pool_connected equals 1 then this raw also represents a client which currently holds this connection. This does not necessarily mean the DB actually executes a query on this connection right now - this you can only tell from SELECT * FROM pg_stat_activity. </div><div><br></div><div>For more information search &quot;SHOW pool_pools&quot; here: <a href="http://www.pgpool.net/docs/latest/pgpool-en.html">http://www.pgpool.net/docs/latest/pgpool-en.html</a></div></div><div><br></div><div>Thanks,</div><div>Yaron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 12:59 PM, Kent Tong <span dir="ltr">&lt;<a href="mailto:kent.tong.mo@gmail.com" target="_blank">kent.tong.mo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Yaron,<div><br></div><div>Thanks for the clear explanation! Is there any way to find the number of current connections from pgpool clients?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 5:43 PM, Yaron Naveh <span dir="ltr">&lt;<a href="mailto:yaronn01@gmail.com" target="_blank">yaronn01@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Kent<div><br></div><div>The documentation was updated today (as least in source) to reflect that if you have multiple backends then the number of entries will be num_init_children*max_pools*num_backends. You probably have 2 backends which can be reflected with the backend_id field in pool_pools.</div><div><br></div><div>If you have one backend then yes, a pool is a single connection that gets reused. So you have exactly <span style="font-family:arial,sans-serif;font-size:13px">num_init_children child processes each containing up to </span><font face="arial, sans-serif">max_pool pools (=connections), each one to a different db/user combination.</font> If you have multiple backends then each pool will contain one connection per backend (for the same db/user combination).</div><div><br></div><div>Thanks,</div><div>Yaron</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Sep 25, 2014 at 12:18 PM, Kent Tong <span dir="ltr">&lt;<a href="mailto:kent.tong.mo@gmail.com" target="_blank">kent.tong.mo@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,</div><div><br></div><div>How to interpret the output of &quot;show pool_pools&quot;? What is a &quot;pool&quot; anyway? Is it a single connection that gets reused? My num_init_children is 50 and max_pool lines is 4, the doc says that it will list 200 entries but 400 were listed. Why? In particular, I found entries with identical pool_pid+pool_id.</div><div><br></div><div>Thanks in advance!</div><span><font color="#888888"><div><br></div>-- <br><div>Kent Tong</div><div>IT author and consultant, child education coach</div>
</font></span></div>
<br></div></div>_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><p style="text-align:left;direction:ltr">I&#39;m on Twitter (<a href="http://twitter.com/#!/YaronNaveh" target="_blank">@YaronNaveh</a>)</p></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Kent Tong</div><div>IT author and consultant, child education coach</div>
</div>
</div></div><br>_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><p style="text-align:left;direction:ltr">I&#39;m on Twitter (<a href="http://twitter.com/#!/YaronNaveh" target="_blank">@YaronNaveh</a>)</p></div>
</div>