]> git.openstreetmap.org Git - chef.git/commitdiff
Configure the database master to keep 16Gb of WAL data
authorTom Hughes <tom@compton.nu>
Thu, 24 Aug 2023 19:44:46 +0000 (20:44 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 24 Aug 2023 19:44:46 +0000 (20:44 +0100)
roles/db-master.rb

index 3ebd79e826800fa1c422bb921938ebbb7eff91ab..b7bc87f3b373dc1b49abf04dc032a1595d480924 100644 (file)
@@ -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"
       }
     }
   }