]> git.openstreetmap.org Git - chef.git/commitdiff
Experimentally increase loadavg cutoff for mapnik export service
authorGrant Slater <grant.slater@wearefriday.com>
Fri, 10 Apr 2015 12:48:11 +0000 (13:48 +0100)
committerGrant Slater <grant.slater@wearefriday.com>
Fri, 10 Apr 2015 12:48:19 +0000 (13:48 +0100)
cookbooks/tile/templates/default/export.erb

index d178df4ced64b10c68f4efe86b5ce9f698cd5009..b3acb92232b00f1affeeccf57d646fc988654b37 100644 (file)
@@ -60,7 +60,7 @@ if not os.environ.has_key('HTTP_USER_AGENT'):
 loadavg = float(open("/proc/loadavg").readline().split(" ")[0])
 
 # Process the request
-if loadavg > 35.0:
+if loadavg > 70.0:
   # Abort if the load average on the machine is too high
   print "Status: 503 Service Unavailable"
   output_error("The load average on the server is too high at the moment. Please wait a few minutes before trying again.")