]> git.openstreetmap.org Git - chef.git/blobdiff - roles/yevaud.rb
Enable the postgresql repository on yevaud
[chef.git] / roles / yevaud.rb
index fd8457ec57225f04a5bcfb0a3ffda3a020754325..b3c296dbc10c8472edd8daa815db0758b623ba0d 100644 (file)
@@ -2,6 +2,9 @@ name "yevaud"
 description "Master role applied to yevaud"
 
 default_attributes(
+  :apt => {
+    :sources => ["postgresql"]
+  },
   :devices => {
     :osdisktune1 => {
       :comment => "Tune os disk",
@@ -75,9 +78,9 @@ default_attributes(
     :versions => ["9.4"],
     :settings => {
       :defaults => {
-        :shared_buffers => "3GB",
+        :shared_buffers => "8GB",
         :maintenance_work_mem => "7144MB",
-        :effective_cache_size => "8GB"
+        :effective_cache_size => "16GB"
       }
     }
   },
@@ -85,8 +88,8 @@ default_attributes(
     :postgres => {
       :comment => "Increase shared memory for postgres",
       :parameters => {
-        "kernel.shmmax" => 4 * 1024 * 1024 * 1024,
-        "kernel.shmall" => 4 * 1024 * 1024 * 1024 / 4096
+        "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
+        "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
       }
     },
     :cpu_tune => {