Skip to content

Commit 1965e9b

Browse files
committed
chore(postgresql-cluster): reset wal retain size
1 parent 923bc2c commit 1965e9b

8 files changed

Lines changed: 22 additions & 23 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ preInitScript: |
7272
hot_standby: "on"
7373
max_connections: 1005
7474
max_worker_processes: 8
75-
wal_keep_segments: 1024
7675
max_wal_senders: 10
7776
max_replication_slots: 10
7877
max_prepared_transactions: 0

addons/postgresql-cluster/15/plans/standard-10/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ postgresql:
2828
# Checkpointing:
2929
checkpoint_timeout = '15 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
31+
max_wal_size = '1 GB'
3232
min_wal_size = '512 MB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '3650 MB'
39+
wal_keep_size = '1 GB'
4040
4141
# Background writer
4242
bgwriter_delay = 200ms

addons/postgresql-cluster/15/plans/standard-100/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ postgresql:
2626
synchronous_commit = on
2727
2828
# Checkpointing:
29-
checkpoint_timeout = '15 min'
29+
checkpoint_timeout = '25 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
32-
min_wal_size = '512 MB'
31+
max_wal_size = '4 GB'
32+
min_wal_size = '2 GB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '3650 MB'
39+
wal_keep_size = '4 GB'
4040
4141
4242
# Background writer

addons/postgresql-cluster/15/plans/standard-20/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ postgresql:
2828
# Checkpointing:
2929
checkpoint_timeout = '15 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
31+
max_wal_size = '2 GB'
3232
min_wal_size = '512 MB'
3333
3434
@@ -37,7 +37,7 @@ postgresql:
3737
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3838
wal_writer_delay = 200ms
3939
wal_writer_flush_after = 1MB
40-
wal_keep_size = '3650 MB'
40+
wal_keep_size = '1 GB'
4141
4242
4343
# Background writer

addons/postgresql-cluster/15/plans/standard-200/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ postgresql:
2626
synchronous_commit = on
2727
2828
# Checkpointing:
29-
checkpoint_timeout = '15 min'
29+
checkpoint_timeout = '25 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
32-
min_wal_size = '512 MB'
31+
max_wal_size = '5 GB'
32+
min_wal_size = '3 GB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '3650 MB'
39+
wal_keep_size = '5 GB'
4040
4141
# Background writer
4242
bgwriter_delay = 200ms

addons/postgresql-cluster/15/plans/standard-400/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ postgresql:
2626
synchronous_commit = on
2727
2828
# Checkpointing:
29-
checkpoint_timeout = '15 min'
29+
checkpoint_timeout = '30 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
32-
min_wal_size = '512 MB'
31+
max_wal_size = '6 GB'
32+
min_wal_size = '2 GB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '3650 MB'
39+
wal_keep_size = '10 GB'
4040
4141
# Background writer
4242
bgwriter_delay = 200ms

addons/postgresql-cluster/15/plans/standard-50/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ postgresql:
2828
# Checkpointing:
2929
checkpoint_timeout = '15 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '1024 MB'
31+
max_wal_size = '2 GB'
3232
min_wal_size = '512 MB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '3650 MB'
39+
wal_keep_size = '3 GB'
4040
4141
4242
# Background writer

addons/postgresql-cluster/15/plans/standard-800/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ postgresql:
2626
synchronous_commit = on
2727
2828
# Checkpointing:
29-
checkpoint_timeout = '15 min'
29+
checkpoint_timeout = '30 min'
3030
checkpoint_completion_target = 0.9
31-
max_wal_size = '10240 MB'
32-
min_wal_size = '5120 MB'
31+
max_wal_size = '8 GB'
32+
min_wal_size = '4 GB'
3333
3434
# WAL writing
3535
wal_compression = on
3636
wal_buffers = -1 # auto-tuned by Postgres till maximum of segment size (16MB by default)
3737
wal_writer_delay = 200ms
3838
wal_writer_flush_after = 1MB
39-
wal_keep_size = '22080 MB'
39+
wal_keep_size = '10 GB'
4040
4141
# Background writer
4242
bgwriter_delay = 200ms

0 commit comments

Comments
 (0)