Add pg pool tuning options from kit v0.10.0
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -93,6 +93,10 @@ spec:
|
||||
value: {{ .Values.postgresql.maxConnIdleTimeSeconds | default "1800" | quote }}
|
||||
- name: PG_MAX_CONN_LIFETIME_SECONDS
|
||||
value: {{ .Values.postgresql.maxConnLifetimeSeconds | default "3600" | quote }}
|
||||
- name: PG_MAX_CONN_LIFETIME_JITTER_SECONDS
|
||||
value: {{ .Values.postgresql.maxConnLifetimeJitterSeconds | default "300" | quote }}
|
||||
- name: PG_HEALTH_CHECK_PERIOD_SECONDS
|
||||
value: {{ .Values.postgresql.healthCheckPeriodSeconds | default "60" | quote }}
|
||||
{{- if .Values.postgresql.caBundle }}
|
||||
- name: PG_CA_BUNDLE
|
||||
valueFrom:
|
||||
|
||||
@@ -311,6 +311,12 @@ postgresql:
|
||||
# Maximum lifetime of a connection before being recycled, in
|
||||
# seconds. Default 3600 (1 hour) matches pgx defaults.
|
||||
maxConnLifetimeSeconds: 3600
|
||||
# Jitter added to maxConnLifetime to spread reconnect storms, in
|
||||
# seconds. Default 300 (5 minutes).
|
||||
maxConnLifetimeJitterSeconds: 300
|
||||
# How often the pool checks idle connections, in seconds. Default 60
|
||||
# (1 minute).
|
||||
healthCheckPeriodSeconds: 60
|
||||
# PostgreSQL TLS/SSL configuration
|
||||
# caBundle: |
|
||||
# -----BEGIN CERTIFICATE-----
|
||||
|
||||
Reference in New Issue
Block a user