]> git.openstreetmap.org Git - chef.git/blob - roles/ramoth.rb
Use TCP/IP connections for FPM on 14.04
[chef.git] / roles / ramoth.rb
1 name "ramoth"
2 description "Master role applied to ramoth"
3
4 default_attributes(
5   :db => {
6     :cluster => "9.1/main"
7   },
8   :devices => {
9     :store_openstreetmap => {
10       :comment => "RAID array mounted on /store/postgresql/openstreetmap",
11       :type => "block",
12       :bus => "scsi",
13       :serial => "3600605b0039483a017092ecbe862082a",
14       :attrs => {
15         "queue/scheduler" => "deadline",
16         "queue/nr_requests" => "975"
17       }
18     },
19     :store_system => {
20       :comment => "RAID array mounted on /store/postgresql/system",
21       :type => "block",
22       :bus => "scsi",
23       :serial => "3600605b0039483a017092ff8fa5a6332",
24       :attrs => {
25         "queue/scheduler" => "deadline",
26         "queue/nr_requests" => "975"
27       }
28     }
29   },
30   :networking => {
31     :interfaces => {
32       :internal_ipv4 => {
33         :interface => "eth0",
34         :role => :internal,
35         :family => :inet,
36         :address => "146.179.159.170",
37         :hwaddress => "00:25:90:4b:05:9a"
38       }
39     }
40   },
41   :postgresql => {
42     :settings => {
43       :defaults => {
44         :shared_buffers => "64GB",
45         :work_mem => "64MB",
46         :maintenance_work_mem => "1GB",
47         :effective_cache_size => "180GB"
48       }
49     }
50   },
51   :sysctl => {
52     :postgres => {
53       :comment => "Increase shared memory for postgres",
54       :parameters => { 
55         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
56         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
57       }
58     }
59   }
60 );
61
62 run_list(
63   "role[ic]",
64   "role[db-master]",
65   "role[db-backup]"
66 )