]> git.openstreetmap.org Git - chef.git/commitdiff
configure nominatim for longma
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 14 Dec 2021 19:12:58 +0000 (20:12 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 14 Dec 2021 19:13:34 +0000 (20:13 +0100)
roles/longma.rb

index 2b362d8eb6b43ee90d0901b4538ac199c14cc2ef..a8380824ff5238ea156c2e47af00241801e175e8 100644 (file)
@@ -29,6 +29,44 @@ default_attributes(
         :address => "2001:470:1:b3b::d"
       }
     }
+  },
+  :postgresql => {
+    :versions => ["14"],
+    :settings => {
+      :defaults => {
+        :work_mem => "240MB",
+        :maintenance_work_mem => "10GB",
+        :random_page_cost => "1.5",
+        :effective_cache_size => "60GB",
+        :fsync => "off",
+        :effective_io_concurrency => "500"
+      }
+    }
+  },
+  :nominatim => {
+    :state => "standalone",
+    :enable_backup => false,
+    :enable_git_updates => true,
+    :dbadmins => %w[lonvia tomh],
+    :dbcluster => "14/main",
+    :postgis => "3",
+    :flatnode_file => "/ssd/nominatim/nodes.store",
+    :config => {
+      :tokenizer => "icu"
+    },
+    :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"
+    }
   }
 )