]> git.openstreetmap.org Git - chef.git/commitdiff
Configure max_wal_senders on slaves to match the master
authorTom Hughes <tom@compton.nu>
Sun, 22 Jan 2023 11:07:51 +0000 (11:07 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 22 Jan 2023 11:07:51 +0000 (11:07 +0000)
roles/db-master.rb
roles/db.rb

index ffea0f019038cd77345bfe1301df3cafb77d3140..07dd63dd7730f0eb84c48e323cb0b048b0c6053d 100644 (file)
@@ -8,7 +8,6 @@ default_attributes(
         :wal_level => "logical",
         :archive_mode => "on",
         :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true",
-        :max_wal_senders => "10",
         :max_replication_slots => "1",
         :late_authentication_rules => [
           { :database => "replication", :user => "replication", :address => "10.0.0.4/32" },   # snap-02
index 7ff450b2ffba85e698c8912a5f3fb2230865e241..749592ce831d6701ca88742bec24afb59f5b87b7 100644 (file)
@@ -44,6 +44,7 @@ default_attributes(
         :checkpoint_segments => "32",
         :max_wal_size => "1536MB",
         :checkpoint_completion_target => "0.8",
+        :max_wal_senders => "10",
         :cpu_tuple_cost => "0.1",
         :log_min_duration_statement => "1000",
         :late_authentication_rules => [