Hey everyone,
We’re looking to deploy pgbouncer or something similar to handle connection pooling between our App containers and PostgreSQL database. How do we set up pgbouncer on Aptible?
Hey everyone,
We’re looking to deploy pgbouncer or something similar to handle connection pooling between our App containers and PostgreSQL database. How do we set up pgbouncer on Aptible?
Hey anonymous13,
We recommend you to deploy PgBouncer as a separate App especially if you have multiple Services connecting to a Database. Deploying PgBouncer as a separate App allows for all App containers to use the same connection pool rather than each container having its own.
When deploying PgBouncer as an App, there are some platform considerations to make:
CLIENT_TLS_SSLMODE=require
and SERVER_TLS_SSLMODE=require
to ensure that the client and server connections are secure.aptible apps:scale
command.Best,
Michael