]> git.openstreetmap.org Git - chef.git/blob - roles/prometheus.rb
Merge remote-tracking branch 'github/pull/613'
[chef.git] / roles / prometheus.rb
1 name "prometheus"
2 description "Role applied to all prometheus servers"
3
4 default_attributes(
5   :postgresql => {
6     :settings => {
7       :defaults => {
8         :max_connections => "500",
9         :shared_buffers => "48GB",
10         :work_mem => "8MB",
11         :maintenance_work_mem => "2GB",
12         :max_worker_processes => "67",
13         :max_parallel_workers_per_gather => "28",
14         :max_parallel_workers => "56",
15         :wal_buffers => "16MB",
16         :max_wal_size => "32GB",
17         :min_wal_size => "4GB",
18         :checkpoint_completion_target => "0.9",
19         :random_page_cost => "1.1",
20         :effective_cache_size => "144GB",
21         :default_statistics_target => "500",
22         :autovacuum_max_workers => "56",
23         :autovacuum_naptime => "1",
24         :autovacuum_multixact_freeze_max_age => "200000000",
25         :max_locks_per_transaction => "512"
26       }
27     }
28   }
29 )
30
31 run_list(
32   "recipe[prometheus::server]"
33 )