X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e9317ec53bdddaa7d049ff84579ead28509bd7e3..e03067e0599313ff544f05dc5b49eaa5203c5978:/roles/rhaegal.rb diff --git a/roles/rhaegal.rb b/roles/rhaegal.rb index 4fe02e110..12ccf15eb 100644 --- a/roles/rhaegal.rb +++ b/roles/rhaegal.rb @@ -2,6 +2,27 @@ name "rhaegal" description "Master role applied to rhaegal" default_attributes( + :accounts => { + :users => { + :mmiler => { :status => :administrator } + } + }, + :apt => { + :sources => ["postgresql"] + }, + :devices => { + :ssd_samsung => { + :comment => "Tune scheduler for SSD", + :type => "block", + :bus => "ata", + :serial => "Samsung_SSD_860_PRO_*", + :attrs => { + "queue/scheduler" => "noop", + "queue/nr_requests" => "256", + "queue/read_ahead_kb" => "2048" + } + } + }, :location => "Zagreb, Croatia", :networking => { :interfaces => { @@ -18,9 +39,43 @@ default_attributes( "10.5.0.7", "8.8.8.8" ] + }, + :postgresql => { + :versions => ["10"], + :settings => { + :defaults => { + :shared_buffers => "8GB", + :maintenance_work_mem => "7144MB", + :effective_cache_size => "16GB" + } + } + }, + :sysctl => { + :postgres => { + :comment => "Increase shared memory for postgres", + :parameters => { + "kernel.shmmax" => 9 * 1024 * 1024 * 1024, + "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096 + } + } + }, + :tile => { + :database => { + :cluster => "10/main", + :postgis => "2.4" + }, + :node_file => "/store/database/nodes", + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } } ) run_list( - "role[carnet]" + "role[carnet]", + "role[tile]" )