]> git.openstreetmap.org Git - chef.git/blobdiff - roles/db-master.rb
Revert "cloudwatch: add eu-north-1 for osm-main to collect replication metrics"
[chef.git] / roles / db-master.rb
index d65791e155adc306799876fca5eda33341844071..b7bc87f3b373dc1b49abf04dc032a1595d480924 100644 (file)
@@ -5,17 +5,9 @@ default_attributes(
   :postgresql => {
     :settings => {
       :defaults => {
-        :wal_level => "hot_standby",
         :archive_mode => "on",
-        :archive_command => "/usr/local/bin/openstreetmap-wal-e --terse wal-push %p",
-        :max_wal_senders => "3",
-        :late_authentication_rules => [
-          { :database => "replication", :user => "replication", :address => "10.0.48.49/32" },
-          { :database => "replication", :user => "replication", :address => "10.0.48.50/32" },
-          { :database => "replication", :user => "replication", :address => "10.0.48.5/32" },
-          { :database => "replication", :user => "replication", :address => "10.0.0.10/32" },
-          { :database => "replication", :user => "replication", :address => "10.0.32.40/32" }
-        ]
+        :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true",
+        :wal_keep_size => "16384"
       }
     }
   }