]> git.openstreetmap.org Git - chef.git/blobdiff - roles/pummelzacken.rb
Make karm the database master
[chef.git] / roles / pummelzacken.rb
index f5a573d47d01e952b31893b7b511065c387d56f1..365866e46f796deecb596ff804b9810f45818ec9 100644 (file)
@@ -19,7 +19,7 @@ default_attributes(
     }
   },
   :postgresql => {
-    :versions => ["9.5"],
+    :versions => ["10"],
     :settings => {
       :defaults => {
         :listen_addresses => "10.0.0.20",
@@ -27,14 +27,16 @@ default_attributes(
         :maintenance_work_mem => "10GB",
         :random_page_cost => "1.5",
         :effective_cache_size => "60GB",
-        :fsync => "on"
+        :fsync => "off"
       }
     }
   },
   :nominatim => {
-    :state => "standalone",
-    :dbadmins => %w(lonvia tomh),
-    :dbcluster => "9.5/main",
+    :state => "off",
+    :dbadmins => %w[lonvia tomh],
+    :dbcluster => "10/main",
+    :postgis => "2.4",
+    :enable_backup => true,
     :flatnode_file => "/ssd/nominatim/nodes.store",
     :tablespaces => {
       "dosm" => "/ssd/tablespaces/dosm",
@@ -47,6 +49,11 @@ default_attributes(
       "isearch" => "/ssd/tablespaces/isearch",
       "daux" => "/data/tablespaces/daux",
       "iaux" => "/data/tablespaces/iaux"
+    },
+    :fpm_pools => {
+      :www => {
+        :max_children => "40"
+      }
     }
   }
 )