feat(postgres): run ha postgres cluster
This commit is contained in:
parent
d1ae006245
commit
736ec8bc47
1 changed files with 10 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ metadata:
|
|||
argocd.argoproj.io/sync-wave: "10"
|
||||
spec:
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
||||
instances: 1
|
||||
instances: 2
|
||||
primaryUpdateStrategy: unsupervised
|
||||
primaryUpdateMethod: switchover
|
||||
superuserSecret:
|
||||
|
|
@ -34,7 +34,14 @@ spec:
|
|||
postgresql:
|
||||
parameters:
|
||||
max_connections: "500"
|
||||
# max_slot_wal_keep_size: "10GB"
|
||||
# wal_keep_size: "5GB"
|
||||
max_slot_wal_keep_size: "1GB"
|
||||
wal_keep_size: "1GB"
|
||||
# High Availability configuration
|
||||
minSyncReplicas: 0
|
||||
maxSyncReplicas: 1
|
||||
# Enable replication slots for HA in the cluster
|
||||
replicationSlots:
|
||||
highAvailability:
|
||||
enabled: true
|
||||
# monitoring:
|
||||
# enablePodMonitor: true
|
||||
|
|
|
|||
Reference in a new issue