Skip to content

Commit cb438cf

Browse files
fix: simplify PostgresCluster config to fix CrashLoopBackOff
- Remove custom Patroni parameters (use defaults) - Reduce memory limits from 2Gi to 1Gi - Reduce storage requests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 25fc7ed commit cb438cf

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

tenants/product-team/apps/chat/overlays/dev/postgres-cluster.yaml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ spec:
1515
- ReadWriteOnce
1616
resources:
1717
requests:
18-
storage: 10Gi
18+
storage: 5Gi
1919
resources:
2020
limits:
21-
cpu: "2"
22-
memory: 2Gi
23-
requests:
24-
cpu: "500m"
21+
cpu: "1"
2522
memory: 1Gi
23+
requests:
24+
cpu: "250m"
25+
memory: 512Mi
2626

2727
backups:
2828
pgbackrest:
@@ -35,28 +35,7 @@ spec:
3535
- ReadWriteOnce
3636
resources:
3737
requests:
38-
storage: 5Gi
39-
40-
patroni:
41-
dynamicConfiguration:
42-
postgresql:
43-
parameters:
44-
max_connections: "150"
45-
shared_buffers: "512MB"
46-
effective_cache_size: "1536MB"
47-
maintenance_work_mem: "128MB"
48-
checkpoint_completion_target: "0.9"
49-
wal_buffers: "16MB"
50-
default_statistics_target: "100"
51-
random_page_cost: "1.1"
52-
effective_io_concurrency: "200"
53-
work_mem: "3495kB"
54-
min_wal_size: "1GB"
55-
max_wal_size: "4GB"
56-
max_worker_processes: "2"
57-
max_parallel_workers_per_gather: "1"
58-
max_parallel_workers: "2"
59-
max_parallel_maintenance_workers: "1"
38+
storage: 2Gi
6039

6140
users:
6241
- name: chatapi

0 commit comments

Comments
 (0)