]> git.openstreetmap.org Git - chef.git/blobdiff - roles/nominatim.rb
nominatim: apply rate limit
[chef.git] / roles / nominatim.rb
index 4a7d40e06fedc63e40d8f717ddd753a4821c6545..74cc74ba7acff24c7fc0c81c421fa8e9a5a7e480 100644 (file)
@@ -16,6 +16,7 @@ default_attributes(
     :mpm => "event",
     :timeout => 60,
     :keepalive => false,
+    :reqtimeout => true,
     :event => {
       :server_limit => 32,
       :max_request_workers => 1600,
@@ -25,6 +26,11 @@ default_attributes(
   :apt => {
     :sources => ["postgresql"]
   },
+  :networking => {
+    :firewall => {
+      :http_rate_limit => "s:7/sec:15"
+    }
+  },
   :postgresql => {
     :settings => {
       :defaults => {