X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1b50376d9b025051576a3a495a760c9db992d7ba..2c6636328d55bacdb0ea34318218af4efefc1280:/roles/balerion.rb diff --git a/roles/balerion.rb b/roles/balerion.rb index 007ecda96..56b88cc39 100644 --- a/roles/balerion.rb +++ b/roles/balerion.rb @@ -2,9 +2,6 @@ name "balerion" description "Master role applied to balerion" default_attributes( - :hardware => { - :shm_size => "36g" - }, :networking => { :interfaces => { :external_ipv4 => { @@ -15,32 +12,47 @@ default_attributes( :prefix => "30", :gateway => "138.44.68.133", :bond => { - :slaves => %w[ens14f0 ens14f1] + :slaves => %w[ens14f0np0 ens14f1np1] } } } }, - :squid => { - :version => 4, - :cache_mem => "32768 MB", - :cache_dir => [ - "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996", - "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092", - "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284", - "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144" - ] + :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 + } + } }, - :tilecache => { - :tile_parent => "melbourne.render.openstreetmap.org", - :tile_siblings => [ - "waima.openstreetmap.org", - "tuatara.openstreetmap.org", - "longma.openstreetmap.org" - ] + :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[aarnet]", - "role[tilecache]" + "role[geodns]", + "role[tile]" )