reduce swappiness for nominatim servers
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Jul 2014 16:49:27 +0000 (18:49 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 21 Jul 2014 16:49:27 +0000 (18:49 +0200)
roles/nominatim.rb

index 1c620147253cf76d6b1cf02464cc42388d6f450f..a98fd9f25a349ab3975e279a3a0922ec98bb7f99 100644 (file)
@@ -48,6 +48,12 @@ default_attributes(
         "kernel.sched_min_granularity_ns" => 10000000,
         "kernel.sched_wakeup_granularity_ns" => 15000000
       }
+    },
+    :swappiness => {
+      :comment => "Reduce swap usage",
+      :parameters => {
+        "vm.swappiness" => 10
+      }
     }
   },
   :nominatim => {