X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/8256c134c17c06e5dd00ef18defde5bd8aac38b8..c1c41b65a4d71cd179d95dba87e53a39a34c85c3:/roles/dulcy.rb?ds=inline diff --git a/roles/dulcy.rb b/roles/dulcy.rb index df40a0e33..ed6ed2553 100644 --- a/roles/dulcy.rb +++ b/roles/dulcy.rb @@ -1,6 +1,5 @@ name "dulcy" -description "Master role applied to dulcy -" +description "Master role applied to dulcy" default_attributes( :networking => { @@ -28,33 +27,53 @@ default_attributes( } }, :postgresql => { + :versions => ["9.6"], :settings => { :defaults => { - :shared_buffers => "10GB", - :work_mem => "160MB", + :work_mem => "300MB", :maintenance_work_mem => "10GB", :random_page_cost => "1.5", - :effective_cache_size => "60GB" + :effective_cache_size => "60GB", + :fsync => "on", + :effective_io_concurrency => "3" } } }, :nominatim => { + :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" } } } @@ -62,5 +81,5 @@ default_attributes( run_list( "role[ic]", - "role[nominatim-standalone]" + "role[nominatim]" )