Update kit with new pg config
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -87,6 +87,12 @@ spec:
|
||||
value: {{ include "probo.postgresql.database" . | quote }}
|
||||
- name: PG_POOL_SIZE
|
||||
value: {{ .Values.postgresql.poolSize | default "100" | quote }}
|
||||
- name: PG_MIN_POOL_SIZE
|
||||
value: {{ .Values.postgresql.minPoolSize | default "10" | quote }}
|
||||
- name: PG_MAX_CONN_IDLE_TIME_SECONDS
|
||||
value: {{ .Values.postgresql.maxConnIdleTimeSeconds | default "1800" | quote }}
|
||||
- name: PG_MAX_CONN_LIFETIME_SECONDS
|
||||
value: {{ .Values.postgresql.maxConnLifetimeSeconds | default "3600" | quote }}
|
||||
{{- if .Values.postgresql.caBundle }}
|
||||
- name: PG_CA_BUNDLE
|
||||
valueFrom:
|
||||
|
||||
@@ -210,6 +210,11 @@ postgresql:
|
||||
username: "probod"
|
||||
password: "CHANGE_ME_DB_PASSWORD"
|
||||
poolSize: 200
|
||||
# Keep 20 connections warm to absorb bursts without paying the
|
||||
# TLS + PostgreSQL startup handshake on each acquire.
|
||||
minPoolSize: 20
|
||||
maxConnIdleTimeSeconds: 1800
|
||||
maxConnLifetimeSeconds: 3600
|
||||
# Uncomment if using TLS with custom CA
|
||||
# caCertBundle: |
|
||||
# -----BEGIN CERTIFICATE-----
|
||||
|
||||
@@ -301,6 +301,16 @@ postgresql:
|
||||
password: "" # REQUIRED when enabled=false: PostgreSQL password
|
||||
database: probod
|
||||
poolSize: 100
|
||||
# Minimum number of warm connections kept in the pool. Raising this
|
||||
# value avoids TLS + PostgreSQL startup handshake latency on bursty
|
||||
# workloads (visible as spikes on pgxpool_acquire_duration_seconds).
|
||||
minPoolSize: 10
|
||||
# Maximum time a connection can be idle before being destroyed, in
|
||||
# seconds. Default 1800 (30 minutes) matches pgx defaults.
|
||||
maxConnIdleTimeSeconds: 1800
|
||||
# Maximum lifetime of a connection before being recycled, in
|
||||
# seconds. Default 3600 (1 hour) matches pgx defaults.
|
||||
maxConnLifetimeSeconds: 3600
|
||||
# PostgreSQL TLS/SSL configuration
|
||||
# caBundle: |
|
||||
# -----BEGIN CERTIFICATE-----
|
||||
|
||||
Reference in New Issue
Block a user