Skip to content

Commit cf3523d

Browse files
committed
replication slot
Signed-off-by: notTabassum <oyshee@appscode.com>
1 parent 4fa452e commit cf3523d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

charts/ace/templates/db/db-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ stringData:
1818
max_wal_senders=50
1919
max_replication_slots=50
2020
# shared_buffers=258MB
21+
# Required for PostgreSQL 17's failover logical replication slot sync
22+
hot_standby_feedback=on
23+
sync_replication_slots=on
24+
{{- with .Values.pgoutbox.synchronizedStandbySlots }}
25+
synchronized_standby_slots='{{ . }}'
26+
{{- end }}
2127
{{- end }}

charts/ace/templates/db/db.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ spec:
1010
version: "{{ .Values.settings.db.version }}"
1111
replicas: 3
1212
storageType: Durable
13+
{{- if .Values.pgoutbox.enabled }}
14+
# Required for PostgreSQL 17's failover logical replication slot sync
15+
replication:
16+
walLimitPolicy: ReplicationSlot
17+
maxSlotWALKeepSize: -1
18+
{{- end }}
1319
storage:
1420
storageClassName: {{ .Values.global.infra.storageClass.name }}
1521
accessModes:

0 commit comments

Comments
 (0)