X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c001915de111558b8d4a1c27f3a95dc20cc2eaca..252b8b4bd23c75b732bae3a7fa55592eb09e3a78:/roles/nominatim.rb diff --git a/roles/nominatim.rb b/roles/nominatim.rb index 8981e500a..93d917e7b 100644 --- a/roles/nominatim.rb +++ b/roles/nominatim.rb @@ -27,7 +27,10 @@ default_attributes( :jit => "off", :shared_buffers => "2GB", :autovacuum_max_workers => "1", - :max_parallel_workers_per_gather => "0" + :max_parallel_workers_per_gather => "0", + :maintenance_work_mem => "10GB", + :random_page_cost => "1.5", + :effective_cache_size => "60GB" } } }, @@ -64,6 +67,21 @@ default_attributes( "net.netfilter.nf_conntrack_max" => "196608" } } + }, + :nominatim => { + :dbadmins => %w[lonvia tomh], + :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" + } } )