From: Tom Hughes Date: Sun, 22 Jul 2018 18:01:49 +0000 (+0100) Subject: Configure rhaegal as a tile server X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c283991b074eda3184dda15738dcbb994ff145a2?ds=inline Configure rhaegal as a tile server --- diff --git a/roles/rhaegal.rb b/roles/rhaegal.rb index ac1cdfc5a..6997afa57 100644 --- a/roles/rhaegal.rb +++ b/roles/rhaegal.rb @@ -7,6 +7,19 @@ default_attributes( :mmiler => { :status => :administrator } } }, + :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 => { @@ -23,9 +36,42 @@ 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" + }, + :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]" )