<div dir="ltr">Hi!<div><br></div><div>By occupation I mean utilization.. Something that I can see that the pgpool are with &#39;98% of connections slots in use&#39;. I use the pgpool into a docker container, so I like to &#39;kill&#39; the container when pgpool get 99% of utilization, so docker swarm (docker orchestrator) will launch a brand new container. When I do this, the vacuum in database nodes are more effective, the cache are released, I guarantee that all the requests will be executed because it will have free connections to use always. I do this &#39;kill&#39; frequently by crontab, but it consume some host resources that are not so good. Basically I need to now if the pgpool has slot to receive more connections, if don&#39;t, I&#39;ll kill the container.</div><div><br></div><div>I like to propose the following features to monitoring:</div><div><br></div><div>- A metric that calculates the utilization of pgpool, calculating a percentage using num_init_children, max_pool and child_max_connections</div><div>- A metric that show the query execution time</div><div>- A metric that show the &#39;tps&#39;, like in pg_top. So I can monitor how many transactions has been executed in the pool to measure the efficiency</div><div><br></div><div>ahhhh, thank you for the fast return! You rock!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua, 11 de set de 2019 às 19:46, Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt; escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; Hi!<br>
&gt; <br>
&gt; I have 3 questions:<br>
&gt; <br>
&gt; 1. How can I get node occupation? I have pgpools in docker containers, and<br>
&gt; I want to recycle the container when the occupation gets 95~99% to avoid<br>
&gt; that the requests are denied.<br>
<br>
What is &quot;occupation&quot;? I am not familiar with docker.<br>
<br>
&gt; 2. Is there any way to get the execution time from statements? My system<br>
&gt; has some users in Oracle and anothers in Postgres .. We are migrating to<br>
&gt; Postgres. But the requests to Postgres have twice the time to the same<br>
&gt; request that Oracle, but the Postgres servers (1 master and 1 slave in<br>
&gt; native stream replication) are more robust then the Oracle&#39;s and it has<br>
&gt; resources left. We&#39;re using about 30% of memory and 10% of CPU. I want to<br>
&gt; find out if the pgpool configuration are satisfactory by comparing the<br>
&gt; response time from postgres node log and the response time on pgpool.<br>
<br>
There&#39;s no such a feature in pgpool. I think it&#39;s not terribly hard to<br>
implement it though.<br>
<br>
&gt; 3. May I try to improve the tool by contribuiting in the project? How can I<br>
&gt; do this?<br>
<br>
We mostly follow PostgreSQL&#39;s way. You can propose design of new<br>
feature in this mailing list to start discussion, along with patches<br>
against git repository if possible. Developers, including me, will<br>
reply to your postings to continue the discussion. Once developers<br>
agree with the patch, one of committers will commit/push the patch. We<br>
always welcome contributions to the project. Please don&#39;t hesitate to<br>
ask questions regarding contribution works.<br>
<br>
&gt; I hope you made me understand.<br>
&gt; <br>
&gt; Thanks guys!<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" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Abraços!<br><br>=============================<br>José Roberto Emerich Junior<br>=============================</div></div></div></div>