X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/10016dc5c3a7c567b22406429cc9efbe335881e3..ba987e5a484374712c87728b662798e57f57ea6a:/cookbooks/tilecache/templates/default/ohai.rb.erb?ds=sidebyside diff --git a/cookbooks/tilecache/templates/default/ohai.rb.erb b/cookbooks/tilecache/templates/default/ohai.rb.erb index 6bf8fc754..f557ddded 100644 --- a/cookbooks/tilecache/templates/default/ohai.rb.erb +++ b/cookbooks/tilecache/templates/default/ohai.rb.erb @@ -8,7 +8,7 @@ Ohai.plugin(:TileCache) do # Find performance reports for last few minutes # Add up total time taken to download tile grouped by remote server # Remove 1 second per successful time report (de-prioritise new servers) - # Add 30 seconds per failed time report request + # Add 10 seconds per failed time report request Dir.glob("/srv/tilecache/data/**/tilecache-*.txt").each do |path| if File.mtime(path) > recent IO.readlines(path).reverse.take(20).each do |sample| @@ -20,7 +20,7 @@ Ohai.plugin(:TileCache) do if status == 200 then times[host] = times.fetch(host, 0) + time - 1 else - times[host] = times.fetch(host, 0) + 30 + times[host] = times.fetch(host, 0) + 10 end end end