From e1ea86062bb7ec8d0399a1c6252be8db6ec746ef Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Apr 09 2021 12:58:43 +0000 Subject: Increase max_wal_size so that mirrordb2 has a chance to catch up after a full sync or a reboot --- 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