Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with interaction between CloudSQL Proxy (GCP) and PgBouncer #1053

Open
adriangb opened this issue Apr 19, 2024 · 2 comments
Open

Issue with interaction between CloudSQL Proxy (GCP) and PgBouncer #1053

adriangb opened this issue Apr 19, 2024 · 2 comments

Comments

@adriangb
Copy link

I tried using CloudSQL Proxy in conjunction with PgBouncer w/ transaction pooling and am running into some strange performance issues that I can't explain.

I tested:

  1. CloudSQL Proxy directly -> fine
  2. PgBouncer connected to a different Postgres database -> fine
  3. PgBouncer connected to CloudSQL Proxy -> bad

So each seems to work fine in isolation but not when combined.
I'm not sure if I'm doing something wrong or if it's a bug in one of the two but I put together an MRE and am filing this as a bug report in hopes of getting some clarity. Sorry if this is a mistake on my end.

The MRE is here: https://github.com/adriangb/pgbouncer-cloudsqlproxy-bug

@enocom
Copy link

enocom commented Apr 22, 2024

FYI GoogleCloudPlatform/cloud-sql-proxy#2201.

I think this is a configuration issue and not a bug.

@eulerto
Copy link
Member

eulerto commented Apr 23, 2024

Unless you can show that the extra time is spent on PgBouncer side, there is no bug here. I advise you to check hardware resources too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants