X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/81ab3a6b4a4b6c477a211cf1e5d8270da124d1d9..fa701fc119f67c4c7626ac07f2e081f249106305:/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" + } } )