X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9f7bd649654a83e58e87f4d3605f7097abeb42fb..0578a5d0e3acb3ea8d107083d07f07d23b48f62b:/roles/balerion.rb diff --git a/roles/balerion.rb b/roles/balerion.rb index f74a4ee03..4aef19a05 100644 --- a/roles/balerion.rb +++ b/roles/balerion.rb @@ -2,41 +2,59 @@ name "balerion" description "Master role applied to balerion" default_attributes( - :hardware => { - :shm_size => "36g" - }, :networking => { :interfaces => { - :external_ipv4 => { + :external => { :interface => "bond0", :role => :external, - :family => :inet, - :address => "138.44.68.134", - :prefix => "30", - :gateway => "138.44.68.133", + :inet => { + :address => "138.44.68.134", + :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 => { + :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 => "16/main", + :postgis => "3" + }, + :mapnik => "3.1", + :replication => { + :directory => "/store/replication" + }, + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } } ) run_list( "role[aarnet]", "role[geodns]", - "role[tilecache]" + "role[tile]" )