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

bouncer config error #54

Open
kokorousaki opened this issue Jan 13, 2025 · 0 comments
Open

bouncer config error #54

kokorousaki opened this issue Jan 13, 2025 · 0 comments

Comments

@kokorousaki
Copy link

env:
operator: ghcr.io/cloudnative-pg/cloudnative-pg:1.22.5
postgres: ghcr.io/cloudnative-pg/postgresql:15.10
pooler: ghcr.io/cloudnative-pg/pgbouncer:1.24.0

I use pgsql to connect to the pooler’s service (svc), but some databases report an error (bouncer config error), while others work fine. What could be the reason?

pgctl:/# psql -h xxx -U postgres -d bussiness
psql: error: connection to server at "xxx" (10.242.218.167), port 5432 failed: FATAL:  bouncer config error
connection to server at "xxx" (10.242.218.167), port 5432 failed: FATAL:  bouncer config error
Image I’ve tried many versions of the pooler, but the same error persists.

Here is my pooler template:

apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
  name: pooler-xxx-postgres-rw
  namespace: postgres
spec:
  cluster:
    name: xxx-postgres
  type: rw
  instances: 1
  template:
    spec:
      containers:
        - name: pgbouncer
          image: ghcr.io/cloudnative-pg/pgbouncer:1.24.0
          resources:
            requests:
              cpu: "0.1"
              memory: 100Mi
            limits:
              cpu: "2"
              memory: 4Gi
  pgbouncer:
    poolMode: session
    parameters:
      default_pool_size: "10"
      max_client_conn: "1000"
      verbose: "3"
    pg_hba:
      - local all all peer map=local
      - host all all all scram-sha-256
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

1 participant