Re: Built-in connection pooling

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: Built-in connection pooling
Дата
Msg-id CAGTBQpZvnUt8j4R1LSdvJcHy17PxNS=FEb3xN_Gg1wM_+VKvZQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Built-in connection pooling  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Ответы Re: Built-in connection pooling
Список pgsql-hackers


On Thu, Jan 18, 2018 at 11:48 AM, Konstantin Knizhnik <k.knizhnik@postgrespro.ru> wrote:

Attached please find new version of the patch with few fixes.
And more results at NUMA system with 144 cores and 3Tb of RAM.

Read-only pgbench (-S):


#Connections\kTPS
Vanilla Postgres
Session pool size 256
1k
1300 1505
10k
633
1519
100k
-1425



Read-write contention test: access to small number of records with 1% of updates.

#Clients\TPSVanilla PostgresSession pool size 256
100557232573319
200520395551670
300511423533773
400468562523091
500442268514056
600401860526704
700363912530317
800325148512238
900301310512844
1000278829554516

So, as you can see, there is no degrade of performance with increased number of connections in case of using session pooling.

TBH, the tests you should be running are comparisons with a similar pool size managed by pgbouncer, not just vanilla unlimited postgres.

Of course a limited pool size will beat thousands of concurrent queries by a large margin. The real question is whether a pthread-based approach beats the pgbouncer approach.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: master make check fails on Solaris 10
Следующее
От: Emre Hasegeli
Дата:
Сообщение: Re: [HACKERS] [PATCH] Improve geometric types