]> git.openstreetmap.org Git - chef.git/blobdiff - roles/ic.rb
Reduce CPU up scaling for IC systems due to cooling pressure
[chef.git] / roles / ic.rb
index 369380956b161a16a29c483c35a80c0177109495..5724b798ec4c92ffd0a26ab6d6a79c48de12afd7 100644 (file)
@@ -8,12 +8,12 @@ default_attributes(
     }
   },
   :networking => {
-    :nameservers => [ "146.179.159.164" ],
+    :nameservers => ["146.179.159.177"],
     :roles => {
       :internal => {
         :inet => {
           :prefix => "27",
-          :gateway => "146.179.159.164"
+          :gateway => "146.179.159.177"
         }
       },
       :external => {
@@ -28,15 +28,24 @@ default_attributes(
         }
       }
     }
+  },
+  :sysfs => {
+    :cpufreq_ondemand_low => {
+      :comment => "Tune the ondemand CPU frequency governor for reduced scaling",
+      :parameters => {
+        "devices/system/cpu/cpufreq/ondemand/up_threshold" => "95",
+        "devices/system/cpu/cpufreq/ondemand/sampling_down_factor" => "1"
+      }
+    }
   }
 )
 
 override_attributes(
   :networking => {
-    :search => [ "ic.openstreetmap.org", "openstreetmap.org" ]
+    :search => ["ic.openstreetmap.org", "openstreetmap.org"]
   },
   :ntp => {
-    :servers => [ "0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org" ]
+    :servers => ["0.uk.pool.ntp.org", "1.uk.pool.ntp.org", "europe.pool.ntp.org"]
   }
 )