Skip to content

Commit

Permalink
Change default wal_keep_size for postgres (#1310)
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <saurov@appscode.com>
  • Loading branch information
souravbiswassanto authored Sep 25, 2024
1 parent 42f85a6 commit 706baeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/kubedb/v1/postgres_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ func (p *Postgres) SetDefaultReplicationMode(postgresVersion *catalog.PostgresVe
}
}
if p.Spec.Replication.WALLimitPolicy == WALKeepSegment && p.Spec.Replication.WalKeepSegment == nil {
p.Spec.Replication.WalKeepSegment = pointer.Int32P(64)
p.Spec.Replication.WalKeepSegment = pointer.Int32P(160)
}
if p.Spec.Replication.WALLimitPolicy == WALKeepSize && p.Spec.Replication.WalKeepSizeInMegaBytes == nil {
p.Spec.Replication.WalKeepSizeInMegaBytes = pointer.Int32P(1024)
p.Spec.Replication.WalKeepSizeInMegaBytes = pointer.Int32P(2560)
}
if p.Spec.Replication.WALLimitPolicy == ReplicationSlot && p.Spec.Replication.MaxSlotWALKeepSizeInMegaBytes == nil {
p.Spec.Replication.MaxSlotWALKeepSizeInMegaBytes = pointer.Int32P(-1)
Expand Down

0 comments on commit 706baeb

Please sign in to comment.