]> git.openstreetmap.org Git - chef.git/blobdiff - roles/poldi.rb
poldi: tweak md sync (check) performance to lower impact on machine
[chef.git] / roles / poldi.rb
index f1ba6320bf298f6e7ba2da6de29fe42e2443d054..6a92cfc90818836f9b5b9f755533fabe1b470bbc 100644 (file)
@@ -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,9 +59,9 @@ 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 => "48GB"
       }