fix pgbouncer
This commit is contained in:
parent
d6a1f9d91a
commit
9609737efe
|
@ -43,6 +43,18 @@ spec:
|
||||||
value: postgres.databases
|
value: postgres.databases
|
||||||
- name: PGBOUNCER_DATABASE
|
- name: PGBOUNCER_DATABASE
|
||||||
value: nocodelytics_production
|
value: nocodelytics_production
|
||||||
|
- name: PGBOUNCER_DEFAULT_POOL_SIZE
|
||||||
|
value: "100"
|
||||||
|
- name: PGBOUNCER_MAX_CLIENT_CONN
|
||||||
|
value: "700"
|
||||||
|
- name: PGBOUNCER_SERVER_IDLE_TIMEOUT
|
||||||
|
value: "60"
|
||||||
|
- name: PGBOUNCER_POOL_MODE
|
||||||
|
value: session
|
||||||
|
- name: PGBOUNCER_RESERVE_POOL_SIZE
|
||||||
|
value: "10"
|
||||||
|
- name: PGBOUNCER_RESERVE_POOL_TIMEOUT
|
||||||
|
value: "5"
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -76,18 +88,6 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: secrets
|
name: secrets
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
- name: PGBOUNCER_DEFAULT_POOL_SIZE
|
|
||||||
value: "50"
|
|
||||||
- name: PGBOUNCER_MAX_CLIENT_CONN
|
|
||||||
value: "700"
|
|
||||||
- name: PGBOUNCER_SERVER_IDLE_TIMEOUT
|
|
||||||
value: "60"
|
|
||||||
- name: PGBOUNCER_POOL_MODE
|
|
||||||
value: transaction
|
|
||||||
- name: PGBOUNCER_RESERVE_POOL_SIZE
|
|
||||||
value: "10"
|
|
||||||
- name: PGBOUNCER_RESERVE_POOL_TIMEOUT
|
|
||||||
value: "5"
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
Loading…
Reference in New Issue