X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/031430cfe08d7c6e971293ead3920b0ec7e2f652..2ca7c974fd25e6f900fff9575a23dbe28c83a546:/roles/albi.rb diff --git a/roles/albi.rb b/roles/albi.rb index ea0a2a919..7d45065c6 100644 --- a/roles/albi.rb +++ b/roles/albi.rb @@ -21,9 +21,42 @@ default_attributes( :gateway => "fe80::a293:51ff:fea2:ded5" } } + }, + :postgresql => { + :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 => "14/main", + :postgis => "3" + }, + :mapnik => "3.1", + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } } ) run_list( - "role[scaleway]" + "role[scaleway]", + "role[tile]" )