Add pooling config to ignore additional startup params

main
trivernis 11 months ago
parent 703d5c7eca
commit 9d1b012de0
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -10,5 +10,6 @@ resources:
- app/config.yaml - app/config.yaml
- app/volume.yaml - app/volume.yaml
- app/stackgres-scripts.yaml - app/stackgres-scripts.yaml
- app/stackgres-pooling.yaml
- app/stackgres.yaml - app/stackgres.yaml
- app/deploy.yaml - app/deploy.yaml

@ -0,0 +1,12 @@
apiVersion: stackgres.io/v1
kind: SGPoolingConfig
metadata:
name: pgbouncerconf
namespace: sharkey
spec:
pgBouncer:
pgbouncer.ini:
pgbouncer:
max_client_conn: '2000'
default_pool_size: '50'
ignore_startup_parameters: statement_timeout

@ -12,6 +12,8 @@ spec:
size: '50Gi' size: '50Gi'
storageClass: ebs-ssd storageClass: ebs-ssd
prometheusAutobind: true prometheusAutobind: true
configurations:
sgPoolingConfig: pgbouncerconf
managedSql: managedSql:
scripts: scripts:
- sgScript: cluster-scripts - sgScript: cluster-scripts

Loading…
Cancel
Save