From d1b4220b593a5f1df27e58a2975df20bda138ecb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 24 Aug 2023 20:44:46 +0100 Subject: [PATCH 1/1] Configure the database master to keep 16Gb of WAL data --- roles/db-master.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/db-master.rb b/roles/db-master.rb index 3ebd79e82..b7bc87f3b 100644 --- a/roles/db-master.rb +++ b/roles/db-master.rb @@ -6,7 +6,8 @@ default_attributes( :settings => { :defaults => { :archive_mode => "on", - :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true" + :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true", + :wal_keep_size => "16384" } } } -- 2.39.5