diff --git a/salt/profile/postgresql/files/postgresql/postgresql.conf b/salt/profile/postgresql/files/postgresql/postgresql.conf index 54ede76..3b3127d 100644 --- a/salt/profile/postgresql/files/postgresql/postgresql.conf +++ b/salt/profile/postgresql/files/postgresql/postgresql.conf @@ -221,7 +221,8 @@ synchronous_commit = off #checkpoint_timeout = 5min # range 30s-1d checkpoint_timeout = 15min -max_wal_size = 1GB +# wal needs to be large enough for mirrordb2 replication to catch up after reboot +max_wal_size = 20GB min_wal_size = 80MB checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0 #checkpoint_flush_after = 256kB # measured in pages, 0 disables