The PgBouncer configuration is not described in the documentation
See original GitHub issueHello,
Currently the documentation does not mention pgbouncer
in any way even though it is recommended in a production environment with a PostgresSQL database. It would be great if we could describe why we need PGBouncer, the recommended configuration, and ways to tunning this component.
For inspiration, we can read the Heroku documentation: https://devcenter.heroku.com/articles/best-practices-pgbouncer-configuration
Best regards, Kamil Breguła
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:5 (4 by maintainers)
Top Results From Across the Web
PgBouncer config
This considers the PgBouncer database that the client has connected to, not the PostgreSQL database of the outgoing connection. This can also be...
Read more >EDB Docs - PgBouncer v1.17 - Configuring and usage
When the EDB PgBouncer service is running, any Postgres client connecting to the EDB PgBouncer listener port specified in the configuration file uses...
Read more >pgbouncer.ini | Pivotal Greenplum Docs
The PgBouncer configuration file (typically named pgbouncer.ini ) is specified in .ini format. Files in .ini format are composed of sections, parameters, and ......
Read more >Ubuntu Manpage: pgbouncer.ini - configuration file for ...
This method is not compatible with databases using auth_user option. Service name reported to PAM is "pgbouncer". Also, pam is still not supported...
Read more >PgBouncer Configuration - Heroku Dev Center
Connection pooling with PgBouncer can solve this by sharing database server ... values on the running dynos, not your application's config variables.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Pgbouncer is critical for cloud setups using Azure Database for Postgresql. For almost a year, my team was using 1.10.9 in a Production environment running Azure Sql Server. In order to upgrade to 1.10.14, we needed to move to Postgresql as support for Sql Server has degraded to unusable at this point. The default connection pooling to Azure Sql Server worked fine. The default connection pooling to Azure Database for Postgresql was terrible resulting in a 16 CPU database using 85% CPU at all times. We added pgbouncer and CPU usage immediately dropped to 1%.
Steps for setting this up in Azure are here: https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/steps-to-install-and-setup-pgbouncer-connection-pooling-proxy/ba-p/730555.
I believe this is covered by https://github.com/apache/airflow/pull/18399