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 1e75f0d..6952ac3 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 b090582..22541a0 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"