Re: Pgbouncer performance query - Mailing list pgsql-general

From Daniel Verite
Subject Re: Pgbouncer performance query
Date
Msg-id 64661152-e769-4771-82b1-e789d1dbfd27@manitou-mail.org
Whole thread Raw
In response to Pgbouncer performance query  (KK CHN <kkchn.in@gmail.com>)
List pgsql-general
    KK CHN wrote:

> default_pool_size = 40

That limits the number of connections from pgBouncer to the database
to 40. That's per user/database, but pgbench connects to the same
database/same user. So when running pgbench -c 200, without pgBouncer
there are 200 active connections, whereas through pgBouncer there are
only 40 active connections in Postgres.

When queries are issued to pgBouncer and the 40 connections
are already busy, it makes them wait.

That alone might explain why the average latencies are so different
between pgBouncer and direct connections.

If you really want to support 200 concurrent clients, increase the pool
size accordingly.

Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/



pgsql-general by date:

Previous
From: KK CHN
Date:
Subject: Re: Pgbouncer performance query
Next
From: KK CHN
Date:
Subject: Resource Usage same In spite of fronting my DB server with Pgbouncer ?