]> git.openstreetmap.org Git - chef.git/blob - roles/matomo.rb
Tune mysql for matomo on smaug
[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 => "16",
20         :innodb_buffer_pool_size => "64GB",
21         :innodb_flush_log_at_trx_commit => "2",
22         :innodb_log_file_size => "2GB",
23         :key_buffer_size => "0"
24       }
25     }
26   }
27 )
28
29 run_list(
30   "recipe[matomo]"
31 )