Re: Sthange things happen: SkyTools pgbouncer is NOT a balancer

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Dmitry Koterov <dmitry(at)koterov(dot)ru>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sthange things happen: SkyTools pgbouncer is NOT a balancer
Date: 2007-09-11 18:17:34
Message-ID: 20070911181734.GA10413@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 11, 2007 at 08:02:34PM +0400, Dmitry Koterov wrote:
> So, it's completely magical for me why "Session pooling", "Transaction
> pooling" and "Statement pooling" options are exist (see
> https://developer.skype.com/SkypeGarage/DbProjects/PgBouncer) If pgbouncer
> is not a balancer, what purpose is to use "Statement pooling" - if we sent
> 100 queries (e.g.) in the same connection, they will always be directed to
> the SAME MACHINE in its different connections, no balancing optimization at
> all.

i dont get where you get the idea that pgbouncer is loadbalancer. it was
never said so in no documentation i have ever found.

as for the purpose - of course there is purpose.

with your "100 queries" example - if you will choose statement pooling
they might be sent using different database connections (to the same
database though). and if you're using autocommit, then the same will
happen in "transaction pooling" mode.

the whole point of pgbouncer is to pool database connections and reuse
the same db-connection for many application connections.

which it does simply great.

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-09-11 18:28:24 Re: Question about a query with two count fields
Previous Message Marko Kreen 2007-09-11 17:29:39 Re: Sthange things happen: SkyTools pgbouncer is NOT a balancer