public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Raj <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: Re: Pgbouncer
Date: Thu, 14 May 2026 23:35:46 +0200
Message-ID: <[email protected]> (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






view thread (2+ messages)

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Pgbouncer
  In-Reply-To: <[email protected]>

* 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