]> git.openstreetmap.org Git - chef.git/blob - roles/prometheus.rb
Fix typo
[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         :effective_io_concurrency => "200",
13         :max_worker_processes => "67",
14         :max_parallel_workers_per_gather => "28",
15         :max_parallel_workers => "56",
16         :wal_buffers => "16MB",
17         :max_wal_size => "32GB",
18         :min_wal_size => "4GB",
19         :checkpoint_completion_target => "0.9",
20         :random_page_cost => "1.1",
21         :effective_cache_size => "144GB",
22         :default_statistics_target => "500",
23         :log_autovacuum_min_duration => "0",
24         :autovacuum_max_workers => "56",
25         :autovacuum_naptime => "1",
26         :autovacuum_multixact_freeze_max_age => "200000000",
27         :max_locks_per_transaction => "512"
28       }
29     }
30   }
31 )
32
33 run_list(
34   "recipe[prometheus::server]"
35 )