]> git.openstreetmap.org Git - chef.git/blobdiff - roles/piwik.rb
Reduce squid memory limit on toothless
[chef.git] / roles / piwik.rb
index 7bf549ab0793cc36530cfeeaba9aac8ffc9a82b6..886784be0a3806f451f1bdcaf82adea1430f23c6 100644 (file)
@@ -4,6 +4,19 @@ description "Role applied to all Piwik servers"
 default_attributes(
   :apache => {
     :mpm => "prefork",
+    :prefork => {
+      :server_limit => 450,
+      :max_request_workers => 450
+    }
+  },
+  :mysql => {
+    :settings => {
+      :mysqld => {
+        :innodb_buffer_pool_instances => "8",
+        :innodb_buffer_pool_size => "16GB",
+        :innodb_flush_log_at_trx_commit => "2"
+      }
+    }
   }
 )