X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a7d96c8358a00088b485fadb5966eb4b231d2ff1..020247758dcc54d0075e0c47eb3f307062ad8779:/roles/poldi.rb diff --git a/roles/poldi.rb b/roles/poldi.rb index 77b905b36..6a92cfc90 100644 --- a/roles/poldi.rb +++ b/roles/poldi.rb @@ -31,6 +31,15 @@ default_attributes( } } }, + :sysfs => { + :md_tune => { + :comment => "Tune the md sync performance so as not to kill system performance", + :parameters => { + "block/md0/md/sync_speed_min" => "100", + "block/md0/md/sync_speed_max" => "100000" + } + } + }, :networking => { :interfaces => { :internal_ipv4 => { @@ -50,11 +59,11 @@ default_attributes( :postgresql => { :settings => { :defaults => { - :shared_buffers => "9GB", + :shared_buffers => "24GB", :work_mem => "160MB", - :maintenance_work_mem => "9GB", + :maintenance_work_mem => "10GB", :random_page_cost => "1.5", - :effective_cache_size => "24GB" + :effective_cache_size => "48GB" } } }