X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ad66df69a108a031ff4fb869f002a6598005649..6fbd0bb5156145d54da0b77dbc82fec5624f7352:/roles/yevaud.rb diff --git a/roles/yevaud.rb b/roles/yevaud.rb index 7dcace09d..6d33455e4 100644 --- a/roles/yevaud.rb +++ b/roles/yevaud.rb @@ -48,27 +48,21 @@ default_attributes( :munin => { :plugins => { :cpu => { - :system => { + :system => { :warning => 500, :critical => 600 } }, :load => { - :load => { - :warning => 150, - :critical => 200 + :load => { + :warning => 250, + :critical => 300 } } } }, :networking => { :interfaces => { - :internal_ipv4 => { - :interface => "eth0", - :role => :internal, - :family => :inet, - :address => "10.0.0.15" - }, :external_ipv4 => { :interface => "eth1", :role => :external, @@ -78,7 +72,7 @@ default_attributes( } }, :postgresql => { - :versions => [ "9.1" ], + :versions => ["9.1"], :settings => { :defaults => { :shared_buffers => "3GB", @@ -90,10 +84,17 @@ default_attributes( :sysctl => { :postgres => { :comment => "Increase shared memory for postgres", - :parameters => { + :parameters => { "kernel.shmmax" => 4 * 1024 * 1024 * 1024, "kernel.shmall" => 4 * 1024 * 1024 * 1024 / 4096 } + }, + :cpu_tune => { + :comment => "Tune kern sched migration cost", + :parameters => { + "kernel.sched_autogroup_enabled" => 0, + "kernel.sched_migration_cost_ns" => 25000000 + } } }, :tile => {