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