Skip to content

Commit

Permalink
tune pg bouncer
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplan-michael committed May 20, 2024
1 parent 81c7688 commit d0173e5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions deploy/helm/charts/kissj/templates/pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ spec:
value: "5432"
# pg bouncer config
- name: PGBOUNCER_MAX_CLIENT_CONN
value: "10000"
value: "2500"

- name: PGBOUNCER_MAX_DB_CONNECTIONS
value: "5000"
value: "300"

- name: PGBOUNCER_IGNORE_STARTUP_PARAMETERS
value: "extra_float_digits"
Expand All @@ -63,8 +63,21 @@ spec:

- name: PGBOUNCER_POOL_MODE
value: "session"

- name: PGBOUNCER_DEFAULT_POOL_SIZE
value: "300"

- name: PGBOUNCER_RESERVE_POOL_SIZE
value: "50"

- name: PGBOUNCER_RESERVE_POOL_TIMEOUT
value: "5"

- name: PGBOUNCER_LOG_CONNECTIONS
value: "1"

- name: PGBOUNCER_LOG_DISCONNECTIONS
value: "1"
resources:
requests:
memory: "500Mi"
Expand Down

0 comments on commit d0173e5

Please sign in to comment.