Search Postgresql Archives

PGbouncer and batch vs real-time pools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

>From reading the PGbouncer configuration man page, PGbouncer creates a new pool on every DB + user pair. If I have two types of queries, long-lived batch reporting and fast PK lookups, then I should favor two pools. Both pools can hit the same database server.

I can configure pgbouncer like this:

[databases]
batch = host=127.0.0.1 port=5432 user=batch dbname=app pool_size=M
quick = host=127.0.0.1 port=5432 user=quick dbname=app pool_size=N

I believe the important user is the one pgbouncer uses to connect to the real PostgreSQL server. That user + dbname is what creates a new pool. The client's name (the one the app connects as) is irrelevant since I hard-code what user I want to use.

Did I read the configuration manual right? Any advice from people "familiar with the matter"?

Thanks!
François Beausoleil



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux