public inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: Laurenz Albe <laurenz.albe@cybertec.at>
To: Raj <rajeshkumar.dba09@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Pgbouncer
Date: Thu, 14 May 2026 23:35:46 +0200
Message-ID: <27d9f616f9b94cef2932348b15c0ad80cb4c09c5.camel@cybertec.at> (raw)
In-Reply-To: <CAJk5Ata6-cjGenCxEyG2rTARNS6ETovWMX8SZYVvrDBtchSOXA@mail.gmail.com>
References: <CAJk5Ata6-cjGenCxEyG2rTARNS6ETovWMX8SZYVvrDBtchSOXA@mail.gmail.com>
On Thu, 2026-05-14 at 17:49 +0530, Raj wrote:
> App team using connection pooling and opening 500 sessions which seems to me stay ,
>
> In this case pgbouncer session pooling or transaction pooling which is better?
Transaction pooling.
> Max_connections in db: 1000
>
> Pool_mode=session
> Max connections in pgbouncer: 3000
> Default_pool_size=500
> Reserve_pool_size=100
> Min_pool_size=20
Too big. Set default_pool_size = min_pool_size = 20, and set reserve_pool_size = 0.
If that turns out to be too small, increase slightly.
Yours,
Laurenz Albe
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, rajeshkumar.dba09@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Pgbouncer
In-Reply-To: <27d9f616f9b94cef2932348b15c0ad80cb4c09c5.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox