From 2cebb1fc820204b55d19da5d925a086ac4242648 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Wed, 6 May 2026 08:34:56 -0400 Subject: [PATCH] chore(cnpg): scale shared-cluster from 3 instances to 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This sandbox sees low-demand workloads. 2 instances (1 primary + 1 streaming replica) still gives automated failover; the third replica is unnecessary overhead — saves a pod, ~600Mi RAM, and a 20Gi block storage volume. When scaled down, cnpg will gracefully drain and remove `shared-cluster-3` (the highest-numbered replica). The `shared-cluster-3` PVC is retained per the `linode-block-storage-retain` storage class, in case we ever need to recover the data; can be deleted manually if not needed. Co-Authored-By: Claude Opus 4.7 (1M context) --- infra/cloudnative-pg/shared-cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/cloudnative-pg/shared-cluster.yaml b/infra/cloudnative-pg/shared-cluster.yaml index 991b5d6..3e0cddb 100644 --- a/infra/cloudnative-pg/shared-cluster.yaml +++ b/infra/cloudnative-pg/shared-cluster.yaml @@ -4,7 +4,7 @@ metadata: name: shared-cluster namespace: cloudnative-pg spec: - instances: 3 + instances: 2 imageName: ghcr.io/cloudnative-pg/postgis:18-3-system-trixie storage: size: 20Gi