]> git.openstreetmap.org Git - chef.git/blobdiff - roles/dulcy.rb
dulcy: reduce fpm pool sizes a bit
[chef.git] / roles / dulcy.rb
index e40e048343a1c93d8544c77eb2ee5c71855ab640..ed6ed2553eeca5765347d1a582ccff440d1494a3 100644 (file)
@@ -1,6 +1,5 @@
 name "dulcy"
-description "Master role applied to dulcy
-"
+description "Master role applied to dulcy"
 
 default_attributes(
   :networking => {
@@ -28,34 +27,53 @@ default_attributes(
     }
   },
   :postgresql => {
+    :versions => ["9.6"],
     :settings => {
       :defaults => {
         :work_mem => "300MB",
         :maintenance_work_mem => "10GB",
         :random_page_cost => "1.5",
         :effective_cache_size => "60GB",
-        :fsync => "on"
+        :fsync => "on",
+        :effective_io_concurrency => "3"
       }
     }
   },
   :nominatim => {
-    :enabled => false,
+    :state => "standalone",
+    :enable_backup => false,
+    :enable_git_updates => true,
+    :dbadmins => %w[lonvia tomh],
+    :dbcluster => "9.6/main",
     :flatnode_file => "/ssd/nominatim/nodes.store",
-    :database => {
-      :cluster => "9.4/main",
-      :dbname => "nominatim",
-      :postgis => "2.1"
+    :logdir => "/ssd/nominatim/log",
+    :tablespaces => {
+      "dosm" => "/ssd/tablespaces/dosm",
+      "iosm" => "/ssd/tablespaces/iosm",
+      "dplace" => "/ssd/tablespaces/dplace",
+      "iplace" => "/ssd/tablespaces/iplace",
+      "daddress" => "/ssd/tablespaces/daddress",
+      "iaddress" => "/ssd/tablespaces/iaddress",
+      "dsearch" => "/ssd/tablespaces/dsearch",
+      "isearch" => "/ssd/tablespaces/isearch",
+      "daux" => "/ssd/tablespaces/daux",
+      "iaux" => "/ssd/tablespaces/iaux"
     },
     :fpm_pools => {
       :www => {
-        :port => "8000",
-        :pm => "dynamic",
-        :max_children => "60"
+        :max_children => "100"
       },
       :bulk => {
-        :port => "8001",
-        :pm => "static",
-        :max_children => "10"
+        :max_children => "15"
+      }
+    }
+  },
+  :sysfs => {
+    :md_tune => {
+      :comment => "Enable request merging for NVMe devices",
+      :parameters => {
+        "block/nvme0n1/queue/nomerges" => "1",
+        "block/nvme1n1/queue/nomerges" => "1"
       }
     }
   }
@@ -63,5 +81,5 @@ default_attributes(
 
 run_list(
   "role[ic]",
-  "role[nominatim-standalone]"
+  "role[nominatim]"
 )