]> git.openstreetmap.org Git - chef.git/blob - roles/matomo.rb
Tune apache configuration for matomo
[chef.git] / roles / matomo.rb
1 name "matomo"
2 description "Role applied to all Matomo servers"
3
4 default_attributes(
5   :apache => {
6     :mpm => "event",
7     :event => {
8       :server_limit => 30,
9       :max_request_workers => 1000,
10       :threads_per_child => 50,
11       :min_spare_threads => 75,
12       :max_spare_threads => 175,
13       :listen_cores_buckets_ratio => 4
14     }
15   },
16   :mysql => {
17     :settings => {
18       :mysqld => {
19         :innodb_buffer_pool_instances => "8",
20         :innodb_buffer_pool_size => "16GB",
21         :innodb_flush_log_at_trx_commit => "2"
22       }
23     }
24   }
25 )
26
27 run_list(
28   "recipe[matomo]"
29 )