]> git.openstreetmap.org Git - chef.git/blob - roles/katla.rb
Configure modtile and renderd collectors
[chef.git] / roles / katla.rb
1 name "katla"
2 description "Master role applied to katla"
3
4 default_attributes(
5   :devices => {
6     :store_slow => {
7       :comment => "RAID array mounted on /store/arrays/slow",
8       :type => "block",
9       :bus => "scsi",
10       :serial => "3600605b005a0609019290f178be8de77",
11       :attrs => {
12         "queue/scheduler" => "deadline",
13         "queue/nr_requests" => "975",
14         "queue/rq_affinity" => "2"
15       }
16     },
17     :store_fast => {
18       :comment => "RAID array mounted on /store/arrays/fast",
19       :type => "block",
20       :bus => "scsi",
21       :serial => "3600605b005a0726019d062ae23b426fd",
22       :attrs => {
23         "queue/scheduler" => "deadline",
24         "queue/nr_requests" => "975",
25         "queue/rq_affinity" => "2"
26       }
27     },
28     :store_ssd_1 => {
29       :comment => "First disk of RAID array mounted on /store/arrays/ssd",
30       :type => "block",
31       :bus => "ata",
32       :serial => "INTEL_SSDSC2BA400G3_BTTV3141041E400HGN",
33       :attrs => {
34         "queue/scheduler" => "noop"
35       }
36     },
37     :store_ssd_2 => {
38       :comment => "Second disk of RAID array mounted on /store/arrays/ssd",
39       :type => "block",
40       :bus => "ata",
41       :serial => "INTEL_SSDSC2BA400G3_BTTV3141044Q400HGN",
42       :attrs => {
43         "queue/scheduler" => "noop"
44       }
45     }
46   },
47   :networking => {
48     :interfaces => {
49       :internal_ipv4 => {
50         :interface => "bond0",
51         :role => :internal,
52         :family => :inet,
53         :address => "10.0.32.40",
54         :bond => {
55           :slaves => %w[eth0 eth1]
56         }
57       }
58     }
59   },
60   :postgresql => {
61     :settings => {
62       :defaults => {
63         :shared_buffers => "64GB",
64         :work_mem => "64MB",
65         :maintenance_work_mem => "1GB",
66         :effective_cache_size => "180GB"
67       }
68     }
69   },
70   :sysctl => {
71     :postgres => {
72       :comment => "Increase shared memory for postgres",
73       :parameters => {
74         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
75         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
76       }
77     }
78   }
79 )
80
81 run_list(
82   "role[bytemark]",
83   "role[db-slave]"
84 )