From 8488a5cbe702b8fc2e0c838fbf4597449b661f96 Mon Sep 17 00:00:00 2001 From: notTabassum Date: Thu, 23 Jul 2026 14:59:18 +0600 Subject: [PATCH] replication slot Signed-off-by: notTabassum --- charts/ace/templates/db/db-config.yaml | 6 ++++++ charts/ace/templates/db/db.yaml | 6 ++++++ charts/service-gateway-presets/README.md | 1 + charts/service-gateway-presets/values.yaml | 1 + charts/service-gateway/README.md | 1 + charts/service-gateway/values.yaml | 1 + 6 files changed, 16 insertions(+) diff --git a/charts/ace/templates/db/db-config.yaml b/charts/ace/templates/db/db-config.yaml index eb78464f7..8b4dc4d02 100644 --- a/charts/ace/templates/db/db-config.yaml +++ b/charts/ace/templates/db/db-config.yaml @@ -18,4 +18,10 @@ stringData: max_wal_senders=50 max_replication_slots=50 # shared_buffers=258MB + # Required for PostgreSQL 17's failover logical replication slot sync + hot_standby_feedback=on + sync_replication_slots=on + {{- with .Values.pgoutbox.synchronizedStandbySlots }} + synchronized_standby_slots='{{ . }}' + {{- end }} {{- end }} diff --git a/charts/ace/templates/db/db.yaml b/charts/ace/templates/db/db.yaml index ddfc3a8bc..37c9466f5 100644 --- a/charts/ace/templates/db/db.yaml +++ b/charts/ace/templates/db/db.yaml @@ -10,6 +10,12 @@ spec: version: "{{ .Values.settings.db.version }}" replicas: 3 storageType: Durable + {{- if .Values.pgoutbox.enabled }} + # Required for PostgreSQL 17's failover logical replication slot sync + replication: + walLimitPolicy: ReplicationSlot + maxSlotWALKeepSize: -1 + {{- end }} storage: storageClassName: {{ .Values.global.infra.storageClass.name }} accessModes: diff --git a/charts/service-gateway-presets/README.md b/charts/service-gateway-presets/README.md index 572673128..3bd996a06 100644 --- a/charts/service-gateway-presets/README.md +++ b/charts/service-gateway-presets/README.md @@ -92,6 +92,7 @@ The following table lists the configurable parameters of the `service-gateway-pr | envoy.provisionerType | | Deployment # DaemonSet | | envoy.image | | ghcr.io/voyagermesh/envoy | | envoy.tag | | "v1.37.2-ac" | +| envoy.resources | | {} | | envoy.service.portRange | Default listener portmanager range to use for gateway exposure | "10000-12767" | | envoy.service.nodeportRange | Default node portmanager range to use for gateway exposure | "30000-32767" | | envoy.service.type | | LoadBalancer # ClusterIP, LoadBalancer, NodePort | diff --git a/charts/service-gateway-presets/values.yaml b/charts/service-gateway-presets/values.yaml index c86feb0e1..93de873d7 100644 --- a/charts/service-gateway-presets/values.yaml +++ b/charts/service-gateway-presets/values.yaml @@ -103,6 +103,7 @@ envoy: provisionerType: Deployment # DaemonSet image: ghcr.io/voyagermesh/envoy tag: "v1.37.2-ac" + resources: {} # replicas only applies when provisionerType is Deployment # replicas: 2 # resources: diff --git a/charts/service-gateway/README.md b/charts/service-gateway/README.md index 80943bea4..ec38baa54 100644 --- a/charts/service-gateway/README.md +++ b/charts/service-gateway/README.md @@ -92,6 +92,7 @@ The following table lists the configurable parameters of the `service-gateway` c | envoy.provisionerType | | Deployment # DaemonSet | | envoy.image | | ghcr.io/voyagermesh/envoy | | envoy.tag | | "v1.37.2-ac" | +| envoy.resources | | {} | | envoy.service.portRange | Default listener portmanager range to use for gateway exposure | "10000-12767" | | envoy.service.nodeportRange | Default node portmanager range to use for gateway exposure | "30000-32767" | | envoy.service.seedBackendPort | | 8080 | diff --git a/charts/service-gateway/values.yaml b/charts/service-gateway/values.yaml index 7f4b596c8..09be570b8 100644 --- a/charts/service-gateway/values.yaml +++ b/charts/service-gateway/values.yaml @@ -105,6 +105,7 @@ envoy: provisionerType: Deployment # DaemonSet image: ghcr.io/voyagermesh/envoy tag: "v1.37.2-ac" + resources: {} # replicas only applies when provisionerType is Deployment # replicas: 2 # resources: