X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/031430cfe08d7c6e971293ead3920b0ec7e2f652..b616d843b86c3f6897eea08b3b96bb26eee06488:/roles/albi.rb diff --git a/roles/albi.rb b/roles/albi.rb index ea0a2a919..21a4bcb6f 100644 --- a/roles/albi.rb +++ b/roles/albi.rb @@ -21,9 +21,41 @@ 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 => "12/main", + :postgis => "3" + }, + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } } ) run_list( - "role[scaleway]" + "role[scaleway]", + "role[tile]" )