question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The PgBouncer configuration is not described in the documentation

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alexmc-mscommented, Feb 8, 2021

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.

0reactions
eladkalcommented, Oct 8, 2021

I believe this is covered by https://github.com/apache/airflow/pull/18399

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found