<p dir="ltr">The load is happen also if i send a file and there is no other users connected.</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2024, 09:19 Tatsuo Ishii <<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">10 - 60 seconds are not short duration and I suspect many clients are<br>
waiting for connecting to pgpool, which could result in the high load<br>
average. To confirm this, you can run the COPY without any other<br>
clients connected/trying to connect to pgpool. If you do not see the<br>
high load problem, then my theory is correct.<br>
<br>
Best reagards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS K.K.<br>
English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
> How long your COPY takes and what's the value for num_init_children?<br>
> It depend of the size of file but is between 10 and 60 sec<br>
> num_init_children = 480<br>
> max_pool = 2<br>
> <br>
> <br>
> On 23.10.24 4:20, Tatsuo Ishii wrote:<br>
>> How long your COPY takes and what's the value for num_init_children?<br>
>><br>
>> If the COPY takes long time and there are many clients waiting for<br>
>> connecting to pgpool, then as soon as the COPY finished and exits the<br>
>> session, all pgpool child process will be waken up and it makes the<br>
>> load average high.<br>
>><br>
>> Best reagards,<br>
>> --<br>
>> Tatsuo Ishii<br>
>> SRA OSS K.K.<br>
>> English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
>> Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
>><br>
>>> Hi<br>
>>><br>
>>> Does pgpool and PostgreSQL run on the same server?<br>
>>><br>
>>> No<br>
>>><br>
>>> What versions of pgpool and PostgreSQL?<br>
>>> Pool version is pgpool-II version 4.3.5 (tamahomeboshi)<br>
>>> Postgresql 16<br>
>>><br>
>>> On 21.10.24 14:41, Tatsuo Ishii wrote:<br>
>>>> Does pgpool and PostgreSQL run on the same server?<br>
>>>> What versions of pgpool and PostgreSQL?<br>
>>>><br>
>>>> Best reagards,<br>
>>>> --<br>
>>>> Tatsuo Ishii<br>
>>>> SRA OSS K.K.<br>
>>>> English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
>>>> Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
>>>><br>
>>>>> You can see 1min load every pick is import.<br>
>>>>><br>
>>>>> On 21.10.24 13:45, Tatsuo Ishii wrote:<br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>>> Hi<br>
>>>>>>><br>
>>>>>>> COPY table TO 'file';<br>
>>>>>>> COPY table FROM 'file';<br>
>>>>>>><br>
>>>>>>> I make it like this, but has a problem with load of pool.<br>
>>>>>> I have no problem with COPY TO 1.2GB table.<br>
>>>>>><br>
>>>>>> test=# select pg_size_pretty(pg_relation_size('pgbench_accounts'));<br>
>>>>>> pg_size_pretty<br>
>>>>>> ----------------<br>
>>>>>> 1281 MB<br>
>>>>>> (1 row)<br>
>>>>>><br>
>>>>>> test=# copy pgbench_accounts to '/tmp/copy.out';<br>
>>>>>> COPY 10000000<br>
>>>>>><br>
>>>>>> Is there anything special with your use-case?<br>
>>>>>> Maybe large number of cucurrent COPY?<br>
>>>>>><br>
>>>>>> Best reagards,<br>
>>>>>> --<br>
>>>>>> Tatsuo Ishii<br>
>>>>>> SRA OSS K.K.<br>
>>>>>> English: <a href="http://www.sraoss.co.jp/index_en/" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp/index_en/</a><br>
>>>>>> Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
>>> _______________________________________________<br>
>>> pgpool-general mailing list<br>
>>> <a href="mailto:pgpool-general@pgpool.net" target="_blank" rel="noreferrer">pgpool-general@pgpool.net</a><br>
>>> <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
> _______________________________________________<br>
> pgpool-general mailing list<br>
> <a href="mailto:pgpool-general@pgpool.net" target="_blank" rel="noreferrer">pgpool-general@pgpool.net</a><br>
> <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div>