X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e947590c6a42789d8a1c240331d85ca637274ed4..7dade8a248c510d4ee5ed24b505fe8ed1e299d41:/roles/balerion.rb diff --git a/roles/balerion.rb b/roles/balerion.rb index e6695a4c9..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,27 +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 => { + :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]" )