]> git.openstreetmap.org Git - chef.git/commitdiff
Tune virtio disks on nadder-01/02
authorGrant Slater <git@firefishy.com>
Thu, 1 Aug 2013 10:00:47 +0000 (11:00 +0100)
committerGrant Slater <git@firefishy.com>
Thu, 1 Aug 2013 10:00:47 +0000 (11:00 +0100)
roles/nadder-01.rb
roles/nadder-02.rb

index 1e75f0d8a2dd000b9433135e96c2df743127daaa..6952ac37a6c3b266ab3d6500bbbdfc0214ee2f6a 100644 (file)
@@ -14,6 +14,17 @@ default_attributes(
       }
     }
   },
+  :sysfs => {
+    :hdd_tune => {
+      :comment => "Tune the queue for improved performance",
+      :parameters => {
+        "block/vda/queue/nr_requests" => "512",
+        "block/vdb/queue/nr_requests" => "512",
+        "block/vda/queue/scheduler" => "deadline",
+        "block/vdb/queue/scheduler" => "deadline"
+      }
+    }
+  },
   :squid => {
     :cache_mem => "1500 MB",
     :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
index b0905825622b82d2f1e686f8a2de6e67fb3a602e..22541a067de372819ff54fd21fe6b33d02008c68 100644 (file)
@@ -14,6 +14,17 @@ default_attributes(
       }
     }
   },
+  :sysfs => {
+    :hdd_tune => {
+      :comment => "Tune the queue for improved performance",
+      :parameters => {
+        "block/vda/queue/nr_requests" => "512",
+        "block/vdb/queue/nr_requests" => "512",
+        "block/vda/queue/scheduler" => "deadline",
+        "block/vdb/queue/scheduler" => "deadline"
+      }
+    }
+  },
   :squid => {
     :cache_mem => "1500 MB",
     :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"